aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/resource.cpp
diff options
context:
space:
mode:
authorSven Hesse2015-05-07 00:29:34 +0200
committerSven Hesse2015-05-07 00:34:02 +0200
commit5bec0cbb9d9b2d29e7ffab4d1c0a0db803960754 (patch)
tree30619dee6d2a1fa37e130e19b8009417f40899e4 /engines/toon/resource.cpp
parent66a4b3c8058b7e36a49a143a03fc299b99d1d625 (diff)
downloadscummvm-rg350-5bec0cbb9d9b2d29e7ffab4d1c0a0db803960754.tar.gz
scummvm-rg350-5bec0cbb9d9b2d29e7ffab4d1c0a0db803960754.tar.bz2
scummvm-rg350-5bec0cbb9d9b2d29e7ffab4d1c0a0db803960754.zip
GOB: Make coordinate parameters in Surface::fillRect() signed
And clip to [0, width), [0, height) before drawing. This fixes bug #6864, which is a regression I introduced in 51fd528fe56e00466255d54e1e71b19f34729bfd when I changed all the drawing code to use the Surface class. I thought that having unsigned coordinates makes sense, but for some reason, Fascination sets _destSpriteX (which maps to left in fillRect()) to -1, expecting the drawing code to clip.
Diffstat (limited to 'engines/toon/resource.cpp')
0 files changed, 0 insertions, 0 deletions