summaryrefslogtreecommitdiffstats
path: root/kmahjongg/Background.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /kmahjongg/Background.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmahjongg/Background.cpp')
-rw-r--r--kmahjongg/Background.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kmahjongg/Background.cpp b/kmahjongg/Background.cpp
index 432ae5fb..2cf7296f 100644
--- a/kmahjongg/Background.cpp
+++ b/kmahjongg/Background.cpp
@@ -78,8 +78,8 @@ void Background::sourceToBackground() {
if (tile) {
// copy new to background wrapping on w and height
for (int y=0; y<backgroundImage->height(); y++) {
- QRgb *dest = (QRgb *) backgroundImage->scanLine(y);
- QRgb *src = (QRgb *) sourceImage->scanLine(y % sourceImage->height());
+ TQRgb *dest = (TQRgb *) backgroundImage->scanLine(y);
+ TQRgb *src = (TQRgb *) sourceImage->scanLine(y % sourceImage->height());
for (int x=0; x< backgroundImage->width(); x++) {
*dest = *(src + (x % sourceImage->width()));
dest++;
@@ -99,8 +99,8 @@ void Background::sourceToBackground() {
TQImage tmp;
tmp.create(backgroundImage->width(), backgroundImage->height(), 32);
for (int ys=0; ys < tmp.height(); ys++) {
- QRgb *src = (QRgb *) backgroundImage->scanLine(ys);
- QRgb *dst = (QRgb *) tmp.scanLine(ys);
+ TQRgb *src = (TQRgb *) backgroundImage->scanLine(ys);
+ TQRgb *dst = (TQRgb *) tmp.scanLine(ys);
for (int xs=0; xs < tmp.width(); xs++) {
*dst=TQColor(*src).dark(133).rgb();
src++;