diff options
author | Sven Hesse | 2015-05-07 00:29:34 +0200 |
---|---|---|
committer | Sven Hesse | 2015-05-07 00:34:02 +0200 |
commit | 5bec0cbb9d9b2d29e7ffab4d1c0a0db803960754 (patch) | |
tree | 30619dee6d2a1fa37e130e19b8009417f40899e4 /engines/scumm/file.h | |
parent | 66a4b3c8058b7e36a49a143a03fc299b99d1d625 (diff) | |
download | scummvm-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/scumm/file.h')
0 files changed, 0 insertions, 0 deletions