diff options
author | Max Horn | 2003-05-10 21:23:17 +0000 |
---|---|---|
committer | Max Horn | 2003-05-10 21:23:17 +0000 |
commit | 9401435b6f6c270eb068b7b9e0b32949ea3b74ac (patch) | |
tree | 00aa37fb298713c96b1aa883b4d4f1e02e967454 /scumm/gfx.cpp | |
parent | 6bf0b6cb0d0c49cd3763852e89db3f4f937a0d1e (diff) | |
download | scummvm-rg350-9401435b6f6c270eb068b7b9e0b32949ea3b74ac.tar.gz scummvm-rg350-9401435b6f6c270eb068b7b9e0b32949ea3b74ac.tar.bz2 scummvm-rg350-9401435b6f6c270eb068b7b9e0b32949ea3b74ac.zip |
fixed operator precedence (thanks MadMoose)
svn-id: r7420
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r-- | scumm/gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index c0307437ef..087584fb84 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -950,8 +950,8 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int width, c _mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + (y * _numStrips + x); - const int left = stripnr << 3; - const int right = left + numstrip << 3; + const int left = (stripnr << 3); + const int right = left + (numstrip << 3); byte *dst = bgbak_ptr; byte *src = smap_ptr; byte color = 0, data = 0; |