aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNeeraj Kumar2010-07-11 06:48:28 +0000
committerNeeraj Kumar2010-07-11 06:48:28 +0000
commitf9c03dc8db9a745d10e628f778cb4cad0d6f6a55 (patch)
tree019e598d3bdde95fe38f06f6db95b4516e6e1b05 /engines
parent424c13e9f479a55a57213da9bf1b21621ce715b8 (diff)
downloadscummvm-rg350-f9c03dc8db9a745d10e628f778cb4cad0d6f6a55.tar.gz
scummvm-rg350-f9c03dc8db9a745d10e628f778cb4cad0d6f6a55.tar.bz2
scummvm-rg350-f9c03dc8db9a745d10e628f778cb4cad0d6f6a55.zip
a correction in palette rotations
svn-id: r50797
Diffstat (limited to 'engines')
-rw-r--r--engines/testbed/graphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/testbed/graphics.cpp b/engines/testbed/graphics.cpp
index 2c820fbc26..c70f6f5726 100644
--- a/engines/testbed/graphics.cpp
+++ b/engines/testbed/graphics.cpp
@@ -800,16 +800,16 @@ bool GFXtests::paletteRotation() {
for (int i = 0; i < 30; i++) {
for (int j = 0; j < 254; j++) {
if (i < 10) {
- buffer[i * 256 + j] = j + 2;
+ buffer[i * 254 + j] = j + 2;
} else if (i < 20) {
- buffer[i * 256 + j] = 0;
+ buffer[i * 254 + j] = 0;
} else {
- buffer[i * 256 + j] = ((j + 127) % 254) + 2;
+ buffer[i * 254 + j] = ((j + 127) % 254) + 2;
}
}
}
- g_system->copyRectToScreen(buffer, 256, 22, 50, 256, 30);
+ g_system->copyRectToScreen(buffer, 254, 22, 50, 254, 30);
g_system->updateScreen();
g_system->delayMillis(1000);
@@ -836,7 +836,7 @@ bool GFXtests::paletteRotation() {
}*/
g_system->delayMillis(10);
- g_system->setPalette(palette, 2, 254);
+ g_system->setPalette(palette, 0, 256);
g_system->updateScreen();
}