[Scummvm-cvs-logs] CVS: scummvm/gui console.cpp,1.43,1.44 newgui.cpp,1.83,1.84
Max Horn
fingolfin at users.sourceforge.net
Sun Mar 28 08:43:06 CEST 2004
Update of /cvsroot/scummvm/scummvm/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15464/gui
Modified Files:
console.cpp newgui.cpp
Log Message:
Renamed more OSystem methods
Index: console.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/console.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- console.cpp 21 Mar 2004 21:20:17 -0000 1.43
+++ console.cpp 28 Mar 2004 16:30:48 -0000 1.44
@@ -80,10 +80,10 @@
void ConsoleDialog::reflowLayout() {
// Calculate the real width/height (rounded to char/line multiples)
- _w = (uint16)(_widthPercent * g_system->get_overlay_width());
-// _w = (_widthPercent * g_system->get_overlay_width() - kScrollBarWidth - 2) / kCharWidth;
+ _w = (uint16)(_widthPercent * g_system->getOverlayWidth());
+// _w = (_widthPercent * g_system->getOverlayWidth() - kScrollBarWidth - 2) / kCharWidth;
// _w = _w * kCharWidth + kScrollBarWidth + 2;
- _h = (uint16)((_heightPercent * g_system->get_overlay_height() - 2) / kLineHeight);
+ _h = (uint16)((_heightPercent * g_system->getOverlayHeight() - 2) / kLineHeight);
_h = _h * kLineHeight + 2;
// Calculate depending values
Index: newgui.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/gui/newgui.cpp,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- newgui.cpp 22 Mar 2004 22:01:10 -0000 1.83
+++ newgui.cpp 28 Mar 2004 16:30:48 -0000 1.84
@@ -91,8 +91,8 @@
if (_needRedraw) {
// Restore the overlay to its initial state, then draw all dialogs.
// This is necessary to get the blending right.
- _system->clear_overlay();
- _system->grab_overlay((OverlayColor *)_screen.pixels, _screenPitch);
+ _system->clearOverlay();
+ _system->grabOverlay((OverlayColor *)_screen.pixels, _screenPitch);
for (int i = 0; i < _dialogStack.size(); i++)
_dialogStack[i]->drawDialog();
_needRedraw = false;
@@ -184,21 +184,21 @@
void NewGui::saveState() {
// Backup old cursor
- _oldCursorMode = _system->show_mouse(true);
+ _oldCursorMode = _system->showMouse(true);
// Enable the overlay
- _system->show_overlay();
+ _system->showOverlay();
// Create a screen buffer for the overlay data, and fill it with
// whatever is visible on the screen rught now.
- _screen.h = _system->get_overlay_height();
- _screen.w = _system->get_overlay_width();
+ _screen.h = _system->getOverlayHeight();
+ _screen.w = _system->getOverlayWidth();
_screen.bytesPerPixel = sizeof(OverlayColor);
_screen.pitch = _screen.w * _screen.bytesPerPixel;
_screenPitch = _screen.w;
_screen.pixels = (OverlayColor*)calloc(_screen.w * _screen.h, sizeof(OverlayColor));
- _system->grab_overlay((OverlayColor *)_screen.pixels, _screenPitch);
+ _system->grabOverlay((OverlayColor *)_screen.pixels, _screenPitch);
_currentKeyDown.keycode = 0;
_lastClick.x = _lastClick.y = 0;
@@ -209,9 +209,9 @@
}
void NewGui::restoreState() {
- _system->show_mouse(_oldCursorMode);
+ _system->showMouse(_oldCursorMode);
- _system->hide_overlay();
+ _system->hideOverlay();
if (_screen.pixels) {
free(_screen.pixels);
_screen.pixels = 0;
@@ -357,7 +357,7 @@
// blit the affected area directly to the overlay. At least for our current
// GUI/widget/dialog code that is just fine.
OverlayColor *buf = getBasePtr(x, y);
- _system->copy_rect_overlay(buf, _screenPitch, x, y, w, h);
+ _system->copyRectToOverlay(buf, _screenPitch, x, y, w, h);
}
void NewGui::drawChar(byte chr, int xx, int yy, OverlayColor color) {
@@ -439,7 +439,7 @@
}
}
- _system->set_mouse_cursor(_cursor, 16, 16, 7, 7);
+ _system->setMouseCursor(_cursor, 16, 16, 7, 7);
_cursorAnimateTimer = time;
_cursorAnimateCounter = (_cursorAnimateCounter + 1) % 4;
More information about the Scummvm-git-logs
mailing list