diff options
author | Vicent Marti | 2008-07-21 09:53:06 +0000 |
---|---|---|
committer | Vicent Marti | 2008-07-21 09:53:06 +0000 |
commit | 89a21f1613cfe9ded3de22c5d4261ed40a39a1c3 (patch) | |
tree | ad667bc514495f89afcbbd93faf28d734603e56b /graphics/VectorRenderer.cpp | |
parent | 5a4fcb83e24829334f12b046c120f200792f0ea9 (diff) | |
download | scummvm-rg350-89a21f1613cfe9ded3de22c5d4261ed40a39a1c3.tar.gz scummvm-rg350-89a21f1613cfe9ded3de22c5d4261ed40a39a1c3.tar.bz2 scummvm-rg350-89a21f1613cfe9ded3de22c5d4261ed40a39a1c3.zip |
Valgrind fix: Invalid read/write while restoring background
svn-id: r33166
Diffstat (limited to 'graphics/VectorRenderer.cpp')
-rw-r--r-- | graphics/VectorRenderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/VectorRenderer.cpp b/graphics/VectorRenderer.cpp index baadd3ae41..190bbbb40a 100644 --- a/graphics/VectorRenderer.cpp +++ b/graphics/VectorRenderer.cpp @@ -1019,13 +1019,13 @@ drawRoundedSquareShadow(int x1, int y1, int r, int w, int h, int blur) { while (x++ < y) { __BE_ALGORITHM(); - if ((1 << x) & hb == 0) { + if (((1 << x) & hb) == 0) { blendFill(ptr_tr - px - r, ptr_tr + y - px, 0, alpha); blendFill(ptr_bl - y + px, ptr_br + y + px, 0, alpha); hb |= (1 << x); } - if ((1 << y) & hb == 0) { + if (((1 << y) & hb) == 0) { blendFill(ptr_tr - r - py, ptr_tr + x - py, 0, alpha); blendFill(ptr_bl - x + py, ptr_br + x + py, 0, alpha); hb |= (1 << y); |