From 10d70ec742f8b109257db2be7b0efaafeee9cb3a Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 4 Oct 2009 05:20:56 +0000 Subject: SCI/newgui: cleanup svn-id: r44584 --- engines/sci/gui/gui_screen.cpp | 6 ++---- engines/sci/gui/gui_view.cpp | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/engines/sci/gui/gui_screen.cpp b/engines/sci/gui/gui_screen.cpp index 9f4a9e6ce2..0f8b2e4dc1 100644 --- a/engines/sci/gui/gui_screen.cpp +++ b/engines/sci/gui/gui_screen.cpp @@ -163,12 +163,11 @@ void SciGUIscreen::BitsSave(Common::Rect rect, byte mask, byte *memoryPtr) { void SciGUIscreen::BitsSaveScreen(Common::Rect rect, byte *screen, byte *&memoryPtr) { int width = rect.width(); - int height = rect.height(); int y; screen += (rect.top * _width) + rect.left; - for (y=rect.top; yCreatePaletteFromData(_resourceData + palOffset, &_palette); + _gfx->CreatePaletteFromData(&_resourceData[palOffset], &_palette); _embeddedPal = true; } @@ -121,7 +121,7 @@ void SciGUIview::initData(sciResourceId resourceId) { cellSize = _resourceData[13]; if (palOffset) { - _gfx->CreatePaletteFromData(_resourceData + palOffset, &_palette); + _gfx->CreatePaletteFromData(&_resourceData[palOffset], &_palette); _embeddedPal = true; } -- cgit v1.2.3