[Scummvm-git-logs] scummvm master -> f8fa6ec64928ed3d9eb027daed4d650f96eda611

npjg nathanael.gentrydb8 at gmail.com
Wed Jun 17 19:32:22 UTC 2020


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:
f8fa6ec649 GRAPHICS: MACGUI: Remove redundant conversion


Commit: f8fa6ec64928ed3d9eb027daed4d650f96eda611
    https://github.com/scummvm/scummvm/commit/f8fa6ec64928ed3d9eb027daed4d650f96eda611
Author: Nathanael Gentry (nathanael.gentrydb8 at gmail.com)
Date: 2020-06-17T15:32:18-04:00

Commit Message:
GRAPHICS: MACGUI: Remove redundant conversion

Changed paths:
    graphics/macgui/macwindowmanager.cpp


diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index 872233c0e1..168dd5c6e0 100644
--- a/graphics/macgui/macwindowmanager.cpp
+++ b/graphics/macgui/macwindowmanager.cpp
@@ -346,7 +346,7 @@ void macDrawPixel(int x, int y, int color, void *data) {
 
 			*((byte *)p->surface->getBasePtr(xu, yu)) =
 				(pat[(yu - p->fillOriginY) % 8] & (1 << (7 - (xu - p->fillOriginX) % 8))) ?
-				color : (p->invert ? abs(255 - *((byte *)p->surface->getBasePtr(xu, yu))) : p->bgColor);
+				color : (p->invert ? 255 - *((byte *)p->surface->getBasePtr(xu, yu)) : p->bgColor);
 
 			if (p->mask)
 				*((byte *)p->mask->getBasePtr(xu, yu)) = 0xff;
@@ -364,7 +364,7 @@ void macDrawPixel(int x, int y, int color, void *data) {
 					uint yu = (uint)y;
 					*((byte *)p->surface->getBasePtr(xu, yu)) =
 						(pat[(yu - p->fillOriginY) % 8] & (1 << (7 - (xu - p->fillOriginX) % 8))) ?
-						color : (p->invert ? abs(255 - *((byte *)p->surface->getBasePtr(xu, yu))) : p->bgColor);
+						color : (p->invert ? 255 - *((byte *)p->surface->getBasePtr(xu, yu)) : p->bgColor);
 
 					if (p->mask)
 						*((byte *)p->mask->getBasePtr(xu, yu)) = 0xff;




More information about the Scummvm-git-logs mailing list