[Scummvm-git-logs] scummvm master -> 968e52ee98cb6307d7dbc6b7de2568d98073f034
bluegr
bluegr at gmail.com
Sun Jun 27 06:05:20 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
968e52ee98 GRAPHICS: Fix crash when resizing the window to low width
Commit: 968e52ee98cb6307d7dbc6b7de2568d98073f034
https://github.com/scummvm/scummvm/commit/968e52ee98cb6307d7dbc6b7de2568d98073f034
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2021-06-27T09:05:17+03:00
Commit Message:
GRAPHICS: Fix crash when resizing the window to low width
Changed paths:
graphics/VectorRendererSpec.h
diff --git a/graphics/VectorRendererSpec.h b/graphics/VectorRendererSpec.h
index 4e934030fa..4d29f467c8 100644
--- a/graphics/VectorRendererSpec.h
+++ b/graphics/VectorRendererSpec.h
@@ -279,13 +279,13 @@ protected:
* @param alpha Alpha intensity of the pixel (0-255)
*/
inline void blendFill(PixelType *first, PixelType *last, PixelType color, uint8 alpha) {
- while (first != last)
+ while (first < last)
blendPixelPtr(first++, color, alpha);
}
inline void blendFillClip(PixelType *first, PixelType *last, PixelType color, uint8 alpha, int realX, int realY) {
if (_clippingArea.top <= realY && realY < _clippingArea.bottom) {
- while (first != last) {
+ while (first < last) {
if (_clippingArea.left <= realX && realX < _clippingArea.right)
blendPixelPtr(first++, color, alpha);
else
More information about the Scummvm-git-logs
mailing list