fix for retina screens

This commit is contained in:
Konstantin Käfer
2014-05-19 11:13:22 +02:00
parent 13575330f7
commit 898c6d6714
9 changed files with 27 additions and 12 deletions

View File

@@ -32,7 +32,7 @@ void Painter::renderIcon(IconBucket& bucket, const std::string& layer_name, cons
iconShader->setMatrix(vtxMatrix);
iconShader->setColor(color);
iconShader->setImage(0);
iconShader->setRatio(map.getState().getPixelRatio());
iconShader->setDimension({{
spriteAtlas.getTextureWidth(),
spriteAtlas.getTextureHeight(),