diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-09-11 14:25:36 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-11 19:55:35 +0300 |
commit | 8f0a7cbb675ede13658bcc10b045d46fda9c93da (patch) | |
tree | 80b648bb7fc60f20abc4f0be3731c6388fea015a /.mailmap | |
parent | c6a0486425aafdf766105da53e4304b42a417498 (diff) | |
download | plus-8f0a7cbb675ede13658bcc10b045d46fda9c93da.tar.gz plus-8f0a7cbb675ede13658bcc10b045d46fda9c93da.tar.bz2 plus-8f0a7cbb675ede13658bcc10b045d46fda9c93da.tar.xz plus-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 '.mailmap')
0 files changed, 0 insertions, 0 deletions