[Marble-bugs] [Bug 199259] marble openstreetmap text and limit line are blurred
Dennis Nienhüser
earthwings at gentoo.org
Sat May 14 13:13:08 CEST 2011
https://bugs.kde.org/show_bug.cgi?id=199259
Dennis Nienhüser <earthwings at gentoo.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |earthwings at gentoo.org
--- Comment #20 from Dennis Nienhüser <earthwings gentoo org> 2011-05-14 13:13:05 ---
Hey Bernhard, awesome work, thanks :-)
I've got a little problem with the patch: When setting still image quality to
high or when panning the map after using +/- (at which point I get sharp
tiles), I get blurred images again. It seems to be caused by an off-by-one
error, can you look at the following patch which fixes that for me?
diff --git a/src/lib/TileScalingTextureMapper.cpp
b/src/lib/TileScalingTextureMapper.cpp
index 63274fb..2ec719f 100644
--- a/src/lib/TileScalingTextureMapper.cpp
+++ b/src/lib/TileScalingTextureMapper.cpp
@@ -146,7 +146,7 @@ void TileScalingTextureMapper::mapTexture( GeoPainter
*geoPainter, ViewParams *v
StackedTile *const tile = m_tileLoader->loadTile( stackedId );
tile->setUsed( true );
- const QSize size = QSize( qCeil( rect.right() - rect.left() ),
qCeil( rect.bottom() - rect.top() ) );
+ const QSize size = QSize( qRound( rect.right() - rect.left()
), qRound( rect.bottom() - rect.top() ) );
const int cacheHash = 2 * ( size.width() % 2 ) + (
size.height() % 2 );
const TileId cacheId = TileId( cacheHash,
stackedId.zoomLevel(), stackedId.x(), stackedId.y() );
QPixmap *im = (*m_cache)[cacheId];
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Marble-bugs
mailing list