diff options
author | lukaslw | 2014-10-09 18:43:17 +0200 |
---|---|---|
committer | lukaslw | 2014-10-09 18:43:17 +0200 |
commit | 0e6ae70d9b94ace8665faeca5666c08c8b7ecf2b (patch) | |
tree | 0c88cc0df1e9e8910a24f2b81a147f22003d6a0c | |
parent | 081ad221d553349203336a6623e93358b30697d1 (diff) | |
download | scummvm-rg350-0e6ae70d9b94ace8665faeca5666c08c8b7ecf2b.tar.gz scummvm-rg350-0e6ae70d9b94ace8665faeca5666c08c8b7ecf2b.tar.bz2 scummvm-rg350-0e6ae70d9b94ace8665faeca5666c08c8b7ecf2b.zip |
PRINCE: Fix INT_MAX error - change it to kIntMax constant
-rw-r--r-- | engines/prince/graphics.cpp | 2 | ||||
-rw-r--r-- | engines/prince/prince.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/engines/prince/graphics.cpp b/engines/prince/graphics.cpp index 36760874c1..cd4b62f7a5 100644 --- a/engines/prince/graphics.cpp +++ b/engines/prince/graphics.cpp @@ -409,7 +409,7 @@ byte GraphicsMan::getBlendTableColor(byte pixelColor, byte backgroundPixelColor, } currColor = 0; - bigValue = INT_MAX; // infinity + bigValue = PrinceEngine::kIntMax; // infinity for (int j = 0; j < 256; j++) { redSecondOrg = originalPalette[3 * j]; redNew = redFirstOrg - redSecondOrg; diff --git a/engines/prince/prince.h b/engines/prince/prince.h index e6d56b283e..3d10c671f0 100644 --- a/engines/prince/prince.h +++ b/engines/prince/prince.h @@ -353,6 +353,7 @@ public: static void plotShadowLinePoint(int x, int y, int color, void *data); static const int16 kFPS = 15; + static const int32 kIntMax = 2147483647; static const int16 kMaxPicWidth = 1280; static const int16 kMaxPicHeight = 480; |