diff options
author | Torbjörn Andersson | 2004-10-22 07:21:17 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-10-22 07:21:17 +0000 |
commit | f9f5845e2d0cd245ff75f95f36eaf7f30b639ea3 (patch) | |
tree | 8f179a42fa86b23014413546da6ff7a58cce3284 /saga/interface.cpp | |
parent | 4115b54b004db5f8879d92f01bea17a52008af5d (diff) | |
download | scummvm-rg350-f9f5845e2d0cd245ff75f95f36eaf7f30b639ea3.tar.gz scummvm-rg350-f9f5845e2d0cd245ff75f95f36eaf7f30b639ea3.tar.bz2 scummvm-rg350-f9f5845e2d0cd245ff75f95f36eaf7f30b639ea3.zip |
Made the usage of the Rect data type more consistent with the rest of
ScummVM.
Note that these are only the cases I was able to find in one morning. There
may be others left to fix. But I'm sure at least most of them will be found
when we start cleaning up the codebase a bit.
svn-id: r15641
Diffstat (limited to 'saga/interface.cpp')
-rw-r--r-- | saga/interface.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/saga/interface.cpp b/saga/interface.cpp index fc633353c5..56def3b38e 100644 --- a/saga/interface.cpp +++ b/saga/interface.cpp @@ -304,10 +304,9 @@ int Interface::draw() { // Erase background of status bar rect.left = 0; - rect.top = _iDesc.status_h - 1; - - rect.right = g_di.logical_w - 1; - rect.bottom = _iDesc.status_y; + rect.top = _iDesc.status_y; + rect.right = g_di.logical_w; + rect.bottom = _iDesc.status_y + _iDesc.status_h; _vm->_gfx->drawRect(back_buf, &rect, _iDesc.status_bgcol); @@ -403,8 +402,8 @@ int Interface::drawStatusBar(R_SURFACE *ds) { // Erase background of status bar rect.left = 0; rect.top = _iDesc.status_y; - rect.right = g_di.logical_w - 1; - rect.bottom = _iDesc.status_y + _iDesc.status_h - 1; + rect.right = g_di.logical_w; + rect.bottom = _iDesc.status_y + _iDesc.status_h; _vm->_gfx->drawRect(ds, &rect, _iDesc.status_bgcol); |