aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/movie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/toon/movie.cpp')
-rw-r--r--engines/toon/movie.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/toon/movie.cpp b/engines/toon/movie.cpp
index d8c3ed4a9f..a706456c91 100644
--- a/engines/toon/movie.cpp
+++ b/engines/toon/movie.cpp
@@ -122,17 +122,17 @@ void Movie::playVideo(bool isFirstIntroVideo) {
int32 currentFrame = _decoder->getCurFrame();
// find unused color key to replace with subtitles color
- int len = frame->w * frame->h;
- const byte* pixels = (const byte *)frame->getPixels();
- byte counts[256];
- memset(counts, 0, sizeof(counts));
- for (int i = 0; i < len; i++) {
- counts[pixels[i]] = 1;
+ uint len = frame->w * frame->h;
+ const byte *pixels = (const byte *)frame->getPixels();
+ bool counts[256];
+ memset(counts, false, sizeof(counts));
+ for (uint i = 0; i < len; i++) {
+ counts[pixels[i]] = true;
}
// 0 is already used for the border color and should not be used here, so it can be skipped over.
for (int j = 1; j < 256; j++) {
- if (counts[j] == 0) {
+ if (!counts[j]) {
unused = j;
break;
}