Changed Screen::loadPalette to take a reference to a Palette object instead of an array.

svn-id: r41745
This commit is contained in:
Johannes Schickel 2009-06-22 02:37:41 +00:00
parent d2e5166dae
commit d7432e18ea
11 changed files with 37 additions and 46 deletions

View file

@ -82,7 +82,7 @@ bool Debugger::cmd_loadPalette(int argc, const char **argv) {
_vm->screen()->loadBitmap(argv[1], 5, 5, 0);
palette.copy(_vm->screen()->getCPagePtr(5), 0, 256);
_vm->screen()->copyBlockToPage(5, 0, 0, 320, 200, buffer);
} else if (!_vm->screen()->loadPalette(argv[1], palette.getData())) {
} else if (!_vm->screen()->loadPalette(argv[1], palette)) {
DebugPrintf("ERROR: Palette '%s' not found!\n", argv[1]);
return true;
}