diff options
author | Fabio Battaglia | 2010-08-21 14:36:40 +0000 |
---|---|---|
committer | Fabio Battaglia | 2010-08-21 14:36:40 +0000 |
commit | 882ed43427f3700404578d29648dd2f2596e8c1f (patch) | |
tree | 7e7bb98141391085bc8025c27517bc9495609e9a /backends/platform/n64 | |
parent | ff06f0c9d5fc42c437f2a569cd6ad7acba1081ea (diff) | |
download | scummvm-rg350-882ed43427f3700404578d29648dd2f2596e8c1f.tar.gz scummvm-rg350-882ed43427f3700404578d29648dd2f2596e8c1f.tar.bz2 scummvm-rg350-882ed43427f3700404578d29648dd2f2596e8c1f.zip |
N64: Remove some unused variable and silence some signed/unsigned comparison warnings
svn-id: r52262
Diffstat (limited to 'backends/platform/n64')
-rw-r--r-- | backends/platform/n64/osys_n64_base.cpp | 5 | ||||
-rw-r--r-- | backends/platform/n64/osys_n64_utilities.cpp | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/backends/platform/n64/osys_n64_base.cpp b/backends/platform/n64/osys_n64_base.cpp index 5e4b84ba3f..9ec9a1b572 100644 --- a/backends/platform/n64/osys_n64_base.cpp +++ b/backends/platform/n64/osys_n64_base.cpp @@ -346,8 +346,7 @@ int16 OSystem_N64::getWidth() { } void OSystem_N64::setPalette(const byte *colors, uint start, uint num) { - for (int i = 0; i < num; ++i) { - uint8 c[4]; + for (uint i = 0; i < num; ++i) { _screenPalette[start + i] = colRGB888toBGR555(colors[2], colors[1], colors[0]); colors += 4; } @@ -413,7 +412,7 @@ void OSystem_N64::grabPalette(byte *colors, uint start, uint num) { } void OSystem_N64::setCursorPalette(const byte *colors, uint start, uint num) { - for (int i = 0; i < num; ++i) { + for (uint i = 0; i < num; ++i) { _cursorPalette[start + i] = colRGB888toBGR555(colors[2], colors[1], colors[0]); colors += 4; } diff --git a/backends/platform/n64/osys_n64_utilities.cpp b/backends/platform/n64/osys_n64_utilities.cpp index bc4661889f..88a2970d7d 100644 --- a/backends/platform/n64/osys_n64_utilities.cpp +++ b/backends/platform/n64/osys_n64_utilities.cpp @@ -42,9 +42,6 @@ void disableAudioPlayback(void) { _audioEnabled = false; - OSystem_N64 *osys = (OSystem_N64 *)g_system; - Audio::MixerImpl *localmixer = (Audio::MixerImpl *)osys->getMixer(); - while (AI_busy()); // Wait for audio to stop } |