summaryrefslogtreecommitdiff
path: root/src/gui/npcpostdialog.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-09-11 14:25:36 +0200
committerAndrei Karas <akaras@inbox.ru>2011-09-11 19:55:35 +0300
commit8f0a7cbb675ede13658bcc10b045d46fda9c93da (patch)
tree80b648bb7fc60f20abc4f0be3731c6388fea015a /src/gui/npcpostdialog.cpp
parentc6a0486425aafdf766105da53e4304b42a417498 (diff)
downloadmanaplus-8f0a7cbb675ede13658bcc10b045d46fda9c93da.tar.gz
manaplus-8f0a7cbb675ede13658bcc10b045d46fda9c93da.tar.bz2
manaplus-8f0a7cbb675ede13658bcc10b045d46fda9c93da.tar.xz
manaplus-8f0a7cbb675ede13658bcc10b045d46fda9c93da.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 Reviewed-by: Andrei Karas <akaras@inbox.ru> Conflicts: NEWS
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
0 files changed, 0 insertions, 0 deletions