aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/graphics.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2013-02-25 02:42:35 +0200
committerFilippos Karapetis2013-02-25 22:00:45 +0200
commitb7419454c5416824552afd222af23d0bdfea7cb7 (patch)
tree4682126f0168d5c0d09ea56f9ff2ca6ff9392236 /engines/hopkins/graphics.cpp
parentc9b1dd37c5abceda2d9a6415d474c0b980c1f5cf (diff)
downloadscummvm-rg350-b7419454c5416824552afd222af23d0bdfea7cb7.tar.gz
scummvm-rg350-b7419454c5416824552afd222af23d0bdfea7cb7.tar.bz2
scummvm-rg350-b7419454c5416824552afd222af23d0bdfea7cb7.zip
HOPKINS: Rename DD_VBL() -> updateScreen()
Diffstat (limited to 'engines/hopkins/graphics.cpp')
-rw-r--r--engines/hopkins/graphics.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp
index b299082394..03f27b5752 100644
--- a/engines/hopkins/graphics.cpp
+++ b/engines/hopkins/graphics.cpp
@@ -560,7 +560,7 @@ void GraphicsManager::fadeIn(const byte *palette, int step, const byte *surface)
// Set the transition palette and refresh the screen
setPaletteVGA256(palData2);
m_scroll16(surface, _vm->_eventsManager._startPos.x, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0);
- DD_VBL();
+ updateScreen();
// Added a delay in order to see the fading
_vm->_eventsManager.delay(20);
@@ -571,7 +571,7 @@ void GraphicsManager::fadeIn(const byte *palette, int step, const byte *surface)
// Refresh the screen
m_scroll16(surface, _vm->_eventsManager._startPos.x, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0);
- DD_VBL();
+ updateScreen();
}
/**
@@ -590,7 +590,7 @@ void GraphicsManager::fadeOut(const byte *palette, int step, const byte *surface
setPaletteVGA256(palData);
m_scroll16(surface, _vm->_eventsManager._startPos.x, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0);
- DD_VBL();
+ updateScreen();
_vm->_eventsManager.delay(20);
}
@@ -602,7 +602,7 @@ void GraphicsManager::fadeOut(const byte *palette, int step, const byte *surface
setPaletteVGA256(palData);
m_scroll16(surface, _vm->_eventsManager._startPos.x, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0);
- return DD_VBL();
+ return updateScreen();
}
/**
@@ -661,7 +661,7 @@ void GraphicsManager::fadeInBreakout() {
lockScreen();
copy16bFromSurfaceScaleX2(_vesaBuffer);
unlockScreen();
- DD_VBL();
+ updateScreen();
}
/**
@@ -676,7 +676,7 @@ void GraphicsManager::fateOutBreakout() {
lockScreen();
copy16bFromSurfaceScaleX2(_vesaBuffer);
unlockScreen();
- DD_VBL();
+ updateScreen();
}
void GraphicsManager::setPaletteVGA256(const byte *palette) {
@@ -686,7 +686,7 @@ void GraphicsManager::setPaletteVGA256(const byte *palette) {
void GraphicsManager::setPaletteVGA256WithRefresh(const byte *palette, const byte *surface) {
changePalette(palette);
m_scroll16(surface, _vm->_eventsManager._startPos.x, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 0);
- DD_VBL();
+ updateScreen();
}
void GraphicsManager::SETCOLOR3(int palIndex, int r, int g, int b) {
@@ -724,7 +724,7 @@ uint16 GraphicsManager::mapRGB(byte r, byte g, byte b) {
| (b >> format.bLoss) << format.bShift;
}
-void GraphicsManager::DD_VBL() {
+void GraphicsManager::updateScreen() {
// TODO: Is this okay here?
g_system->updateScreen();
}
@@ -1744,7 +1744,7 @@ void GraphicsManager::NB_SCREEN(bool initPalette) {
unlockScreen();
memcpy(_vesaScreen, _vesaBuffer, 614399);
- DD_VBL();
+ updateScreen();
}
void GraphicsManager::copyWinscanVbe(const byte *src, byte *dest) {