diff options
author | Max Horn | 2004-10-30 22:34:08 +0000 |
---|---|---|
committer | Max Horn | 2004-10-30 22:34:08 +0000 |
commit | 4126001b861aa6abd1633ae42b7b259ad646df9c (patch) | |
tree | ca7c341d4a63a19cc7b59c40d81c6347df423ecc /saga/interface.cpp | |
parent | 06c46fe423616f516648c67279f5c204398a2bd2 (diff) | |
download | scummvm-rg350-4126001b861aa6abd1633ae42b7b259ad646df9c.tar.gz scummvm-rg350-4126001b861aa6abd1633ae42b7b259ad646df9c.tar.bz2 scummvm-rg350-4126001b861aa6abd1633ae42b7b259ad646df9c.zip |
Turn some methods into functions (potentially gives better code, and we may want to move some of those into the graphics/ module one day)
svn-id: r15703
Diffstat (limited to 'saga/interface.cpp')
-rw-r--r-- | saga/interface.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/saga/interface.cpp b/saga/interface.cpp index 420ec11986..fb6c550606 100644 --- a/saga/interface.cpp +++ b/saga/interface.cpp @@ -308,7 +308,7 @@ int Interface::draw() { rect.right = g_di.logical_w; rect.bottom = _iDesc.status_y + _iDesc.status_h; - _vm->_gfx->drawRect(back_buf, &rect, _iDesc.status_bgcol); + drawRect(back_buf, &rect, _iDesc.status_bgcol); // Draw command panel background if (_panelMode == kPanelCommand) { @@ -318,7 +318,7 @@ int Interface::draw() { origin.x = 0; origin.y = g_di.logical_h - _cPanel.img_h; - _vm->_gfx->bufToSurface(back_buf, _cPanel.img, _cPanel.img_w, + bufToSurface(back_buf, _cPanel.img, _cPanel.img_w, _cPanel.img_h, NULL, &origin); } else { xbase = _dPanel.x; @@ -327,7 +327,7 @@ int Interface::draw() { origin.x = 0; origin.y = g_di.logical_h - _cPanel.img_h; - _vm->_gfx->bufToSurface(back_buf, _dPanel.img, _dPanel.img_w, + bufToSurface(back_buf, _dPanel.img, _dPanel.img_w, _dPanel.img_h, NULL, &origin); } @@ -405,7 +405,7 @@ int Interface::drawStatusBar(SURFACE *ds) { rect.right = g_di.logical_w; rect.bottom = _iDesc.status_y + _iDesc.status_h; - _vm->_gfx->drawRect(ds, &rect, _iDesc.status_bgcol); + drawRect(ds, &rect, _iDesc.status_bgcol); string_w = _vm->_font->getStringWidth(SMALL_FONT_ID, _statusText, 0, 0); |