mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
Ooops
svn-id: r15425
This commit is contained in:
parent
23ae8207de
commit
270de2a503
@ -1320,11 +1320,15 @@ void CharsetRendererClassic::printChar(int chr) {
|
||||
dst.right = dst.left + width;
|
||||
dst.bottom = dst.top + height;
|
||||
|
||||
if (dst.left < 0)
|
||||
if (dst.left < 0) {
|
||||
dstPtr -= _left;
|
||||
dst.left = 0;
|
||||
}
|
||||
|
||||
if (dst.top < 0)
|
||||
if (dst.top < 0) {
|
||||
dstPtr -= _top * dstSurface.pitch;
|
||||
dst.top = 0;
|
||||
}
|
||||
|
||||
if ((dst.left >= dst.right) || (dst.top >= dst.bottom))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user