PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)

Revision:
48:30b068b0d9e8
Parent:
46:e7e438368e16
Child:
51:113b1d84c34f
--- a/POKITTO_HW/HWLCD.cpp	Mon May 21 18:08:52 2018 +0000
+++ b/POKITTO_HW/HWLCD.cpp	Mon May 21 18:10:03 2018 +0000
@@ -763,15 +763,15 @@
                     // *** COMBINE DIRTY RECTS FOR THIS SCANLINE GROUP ***
 
                     // Dirty rect
-                    int sprDirtyYMin = std::min(spry, sprOldY);
-                    sprDirtyYMin = std::max((int)sprDirtyYMin, 0);
-                    int sprDirtyYMax = std::max(spry, sprOldY);
+                    int sprDirtyYMin = min(spry, sprOldY);
+                    sprDirtyYMin = max((int)sprDirtyYMin, 0);
+                    int sprDirtyYMax = max(spry, sprOldY);
                     if (isCurrentSpriteOutOfScreen)
                         sprDirtyYMax = sprOldY;
                     if (isOldSpriteOutOfScreen)
                         sprDirtyYMax = spry;
                     int sprDirtyYMaxEnd = sprDirtyYMax + sprh - 1;
-                    sprDirtyYMaxEnd = std::min(sprDirtyYMaxEnd, LCDHEIGHT - 1);  // Should use LCDHEIGHT instead of screenH? Same with other screen* ?
+                    sprDirtyYMaxEnd = min(sprDirtyYMaxEnd, LCDHEIGHT - 1);  // Should use LCDHEIGHT instead of screenH? Same with other screen* ?
 
                     // Get the scanline min and max y values for drawing
                     if (sprDirtyYMin < scanlineMinY)