summaryrefslogtreecommitdiff
path: root/mana.cbp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-09-11 14:25:36 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-09-11 17:58:43 +0200
commit965cad21750b45206ceea4523d94b7ec92bb8ac6 (patch)
treeb0bfaa36aeec545405a65afd19cd03e462a54068 /mana.cbp
parent6ed5449ea0b8e7356304dd4f6705dcc0ac11647e (diff)
downloadmana-7a05a891acfc90c5714114c3e5d917d5e9bff357.tar.gz
mana-7a05a891acfc90c5714114c3e5d917d5e9bff357.tar.bz2
mana-7a05a891acfc90c5714114c3e5d917d5e9bff357.tar.xz
mana-7a05a891acfc90c5714114c3e5d917d5e9bff357.zip
Fixed OpenGLGraphics::drawRescaledImagePatternv0.5.3
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>
Diffstat (limited to 'mana.cbp')
0 files changed, 0 insertions, 0 deletions