mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 03:40:25 +00:00
GRAPHICS: MACGUI: Remove redundant conversion
This commit is contained in:
parent
1f4e197e71
commit
f8fa6ec649
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user