[Scummvm-git-logs] scummvm master -> c0062fe76100f47bf9268f03088be8e4cabb7a7e
AReim1982
alexander at areim.de
Fri Oct 2 13:01:33 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:
c0062fe761 WII: Fix compilation with flag: disable-16bit
Commit: c0062fe76100f47bf9268f03088be8e4cabb7a7e
https://github.com/scummvm/scummvm/commit/c0062fe76100f47bf9268f03088be8e4cabb7a7e
Author: Alexander Reim (alexander at areim.de)
Date: 2020-10-02T15:00:57+02:00
Commit Message:
WII: Fix compilation with flag: disable-16bit
Changed paths:
backends/platform/wii/osystem_gfx.cpp
diff --git a/backends/platform/wii/osystem_gfx.cpp b/backends/platform/wii/osystem_gfx.cpp
index f425222f99..6a7adce3dd 100644
--- a/backends/platform/wii/osystem_gfx.cpp
+++ b/backends/platform/wii/osystem_gfx.cpp
@@ -244,13 +244,18 @@ void OSystem_Wii::initSize(uint width, uint height,
#endif
uint newWidth, newHeight;
+
+#ifdef USE_RGB_COLOR
if (_pfGame.bytesPerPixel > 1) {
newWidth = ROUNDUP(width, 4);
newHeight = ROUNDUP(height, 4);
} else {
+#endif
newWidth = ROUNDUP(width, 8);
newHeight = ROUNDUP(height, 4);
+#ifdef USE_RGB_COLOR
}
+#endif
if (_gameWidth != newWidth || _gameHeight != newHeight) {
assert((newWidth <= 640) && (newHeight <= 480));
@@ -670,6 +675,7 @@ void OSystem_Wii::setMouseCursor(const void *buf, uint w, uint h, int hotspotX,
_mouseKeyColor = keycolor & 0xff;
tw = ROUNDUP(w, 8);
th = ROUNDUP(h, 4);
+
#ifdef USE_RGB_COLOR
}
#endif
@@ -723,9 +729,9 @@ void OSystem_Wii::setMouseCursor(const void *buf, uint w, uint h, int hotspotX,
const byte *s = (const byte *)buf;
byte *d = (byte *) tmp;
for (u16 y = 0; y < h; ++y) {
- for (u16 x = 0; x < w; ++x)
+ for (u16 x = 0; x < w; ++x) {
*d++ = *s++;
-
+ }
d += tw - w;
}
More information about the Scummvm-git-logs
mailing list