mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 07:11:16 +00:00
Compare palette index against 0 instead of NULL pointer
This commit is contained in:
parent
b2e1ca737d
commit
6fdcc9c929
@ -978,7 +978,7 @@ LPDIRECTDRAWSURFACE MxDisplaySurface::VTable0x44(
|
|||||||
if (p_transparent) {
|
if (p_transparent) {
|
||||||
for (MxS32 y = 0; y < heightAbs; y++) {
|
for (MxS32 y = 0; y < heightAbs; y++) {
|
||||||
for (MxS32 x = 0; x < widthNormal; x++) {
|
for (MxS32 x = 0; x < widthNormal; x++) {
|
||||||
if (*bitmapSrcPtr == NULL) {
|
if (*bitmapSrcPtr == 0) {
|
||||||
*surfaceData = RGB555_CREATE(0x1f, 0, 0x1f);
|
*surfaceData = RGB555_CREATE(0x1f, 0, 0x1f);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user