summaryrefslogtreecommitdiff
path: root/src/map.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-09-11 20:25:36 +0800
committerYohann Ferreira <yohann.ferreira@orange.fr>2011-09-13 19:40:58 +0800
commit135da0b9b7604d3348bf6955f4dae35211dd307c (patch)
tree1cad6d9aee00dd394257fa691d9891b9869efb45 /src/map.h
parent0551d51a369b93b668496f0ab179cb5db7b01f44 (diff)
downloadmana-client-135da0b9b7604d3348bf6955f4dae35211dd307c.tar.gz
mana-client-135da0b9b7604d3348bf6955f4dae35211dd307c.tar.bz2
mana-client-135da0b9b7604d3348bf6955f4dae35211dd307c.tar.xz
mana-client-135da0b9b7604d3348bf6955f4dae35211dd307c.zip
Fixed OpenGLGraphics::drawRescaledImagePattern
This fixes overlay effects that are meant to scale with screen resolution. The problem was that the texture coordinates were not calculated correctly. They were adjusted to the scaled size of the image, and when scaling both the vertex and the texture coordinates, the image will simply not appear scaled at all. Now the texture coordinates are calculated based on the visible part of the original texture. There was also a problem with the vertex coordinates, which were not taking into account the visible part of the image. TMW-Mantis-issue: 1047
Diffstat (limited to 'src/map.h')
0 files changed, 0 insertions, 0 deletions