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
This commit is contained in:
parent
06c46fe423
commit
4126001b86
11 changed files with 39 additions and 63 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue