aboutsummaryrefslogtreecommitdiff
path: root/sword1/screen.cpp
diff options
context:
space:
mode:
authorMax Horn2004-02-28 12:58:13 +0000
committerMax Horn2004-02-28 12:58:13 +0000
commitc6752cccf5186fb04c97e2bb4a64c52fc9447073 (patch)
tree91f3f0264b1542a839cc3504b52603a8034547cb /sword1/screen.cpp
parent56102a1d02925abbe9fc0504751de1a270a34ff3 (diff)
downloadscummvm-rg350-c6752cccf5186fb04c97e2bb4a64c52fc9447073.tar.gz
scummvm-rg350-c6752cccf5186fb04c97e2bb4a64c52fc9447073.tar.bz2
scummvm-rg350-c6752cccf5186fb04c97e2bb4a64c52fc9447073.zip
renamed more OSystem methods to follow our naming scheme; renamed NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend
svn-id: r13087
Diffstat (limited to 'sword1/screen.cpp')
-rw-r--r--sword1/screen.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/sword1/screen.cpp b/sword1/screen.cpp
index 3f3e0f3e3b..faac076d3d 100644
--- a/sword1/screen.cpp
+++ b/sword1/screen.cpp
@@ -108,14 +108,14 @@ void Screen::fnSetPalette(uint8 start, uint16 length, uint32 id, bool fadeUp) {
_fadingStep = 1;
_fadingDirection = FADE_UP;
memset(_currentPalette, 0, 256 * 4);
- _system->set_palette(_currentPalette, 0, 256);
+ _system->setPalette(_currentPalette, 0, 256);
} else
- _system->set_palette(_targetPalette + 4 * start, start, length);
+ _system->setPalette(_targetPalette + 4 * start, start, length);
}
void Screen::fullRefresh(void) {
_fullRefresh = true;
- _system->set_palette(_targetPalette, 0, 256);
+ _system->setPalette(_targetPalette, 0, 256);
}
bool Screen::stillFading(void) {
@@ -133,7 +133,7 @@ bool Screen::showScrollFrame(void) {
uint16 avgScrlY = (uint16)(_oldScrollY + Logic::_scriptVars[SCROLL_OFFSET_Y]) / 2;
_system->copy_rect(_screenBuf + avgScrlY * _scrnSizeX + avgScrlX, _scrnSizeX, 0, 40, SCREEN_WIDTH, SCREEN_DEPTH);
- _system->update_screen();
+ _system->updateScreen();
return true;
}
@@ -147,7 +147,7 @@ void Screen::updateScreen(void) {
}
if (_fadingStep) {
fadePalette();
- _system->set_palette(_currentPalette, 0, 256);
+ _system->setPalette(_currentPalette, 0, 256);
}
uint16 scrlX = (uint16)Logic::_scriptVars[SCROLL_OFFSET_X];
@@ -241,7 +241,7 @@ void Screen::updateScreen(void) {
scrnBuf += _scrnSizeX * SCRNGRID_Y;
}
}
- _system->update_screen();
+ _system->updateScreen();
}
void Screen::newScreen(uint32 screen) {
@@ -956,7 +956,7 @@ void Screen::plotYUV(byte *lut, int width, int height, byte *const *dat) {
}
_system->copy_rect(buf, width, (640-width)/2, (480-height)/2, width, height);
- _system->update_screen();
+ _system->updateScreen();
free(buf);