diff options
author | Strangerke | 2016-11-05 07:52:11 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 22:42:04 +0100 |
commit | 4aa4460bc12fbdb92447ca28401047bcea580c60 (patch) | |
tree | 3a904ac34d86f2870a62dda847e12d0f78544946 /engines/cryo/cryolib.cpp | |
parent | acff7309a21896c0fb437c74ac05c922b8c58b52 (diff) | |
download | scummvm-rg350-4aa4460bc12fbdb92447ca28401047bcea580c60.tar.gz scummvm-rg350-4aa4460bc12fbdb92447ca28401047bcea580c60.tar.bz2 scummvm-rg350-4aa4460bc12fbdb92447ca28401047bcea580c60.zip |
CRYO: Change some int16 to boolean, use nullptr for pointers
Diffstat (limited to 'engines/cryo/cryolib.cpp')
-rw-r--r-- | engines/cryo/cryolib.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cryo/cryolib.cpp b/engines/cryo/cryolib.cpp index 8989cba0ca..8b5eaf6252 100644 --- a/engines/cryo/cryolib.cpp +++ b/engines/cryo/cryolib.cpp @@ -203,7 +203,7 @@ void CLPalette_BeSystem() { ///// CLBlitter static uint16 newPaletteCount, newPaletteFirst; static color_t *pNewPalette; -static uint16 useNewPalette; +static bool useNewPalette; void CLBlitter_CopyViewRect(View *view1, View *view2, Common::Rect *rect1, Common::Rect *rect2) { int dy = rect2->top; @@ -223,7 +223,7 @@ void CLBlitter_CopyViewRect(View *view1, View *view2, Common::Rect *rect1, Commo void CLBlitter_Send2ScreenNextCopy(color_t *palette, uint16 first, uint16 count) { pNewPalette = palette; - useNewPalette = 1; + useNewPalette = true; newPaletteFirst = first; newPaletteCount = count; } @@ -262,7 +262,7 @@ void CLBlitter_CopyView2Screen(View *view) { color_t palette[256]; CLPalette_GetLastPalette(palette); CLPalette_Send2Screen(pNewPalette, newPaletteFirst, newPaletteCount); - useNewPalette = 0; + useNewPalette = false; } //TODO: quick hack to force screen update |