summaryrefslogtreecommitdiffstats
path: root/kshisen/tileset.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 /kshisen/tileset.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 'kshisen/tileset.cpp')
-rw-r--r--kshisen/tileset.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kshisen/tileset.cpp b/kshisen/tileset.cpp
index 492cde79..e9b50c43 100644
--- a/kshisen/tileset.cpp
+++ b/kshisen/tileset.cpp
@@ -67,9 +67,9 @@ void TileSet::resizeTiles(int maxWidth, int maxHeight)
// and maintain the tile's height-to-width ratio
double ratio = static_cast<double>(unscaledTileHeight()) / unscaledTileWidth();
if(maxWidth * ratio < maxHeight)
- maxHeight = qRound(maxWidth * ratio);
+ maxHeight = tqRound(maxWidth * ratio);
else
- maxWidth = qRound(maxHeight / ratio);
+ maxWidth = tqRound(maxHeight / ratio);
if(maxHeight == tileHeight() && maxWidth == tileWidth())
return;
@@ -118,7 +118,7 @@ TQPixmap TileSet::highlightedTile(int n) const
int TileSet::lineWidth() const
{
- int width = qRound(tileHeight() / 10.0);
+ int width = tqRound(tileHeight() / 10.0);
if(width < 3)
width = 3;