MORTEVIELLE: Fixed drawBox() to match original code

This commit is contained in:
chrilith 2015-01-23 13:11:28 +01:00
parent d75fbe79f0
commit 3839d9ce0b
3 changed files with 5 additions and 3 deletions

View File

@ -405,7 +405,7 @@ void DialogManager::drawF3F8() {
int f8Width = _vm->_screenSurface->getStringWidth(f8);
// Write out the bounding box
_vm->_screenSurface->drawBox(0, 42, MAX(f3Width, f8Width) + 6, 18, 7);
_vm->_screenSurface->drawBox(0, 42, MAX(f3Width, f8Width) + 4, 16, 7);
}
/**

View File

@ -1019,6 +1019,8 @@ void ScreenSurface::writeCharacter(const Common::Point &pt, unsigned char ch, in
* simulate the original 640x400 surface, all Y values have to be doubled
*/
void ScreenSurface::drawBox(int x, int y, int dx, int dy, int col) {
dx++; dy++; // Original function draws 1px bigger
Graphics::Surface destSurface = lockArea(Common::Rect(x, y * 2, x + dx, (y + dy) * 2));
destSurface.hLine(0, 0, dx, col);

View File

@ -1653,11 +1653,11 @@ void MortevielleEngine::clearDescriptionBar() {
_mouse->hideMouse();
if (_largestClearScreen) {
_screenSurface->fillRect(0, Common::Rect(1, 176, 633, 199));
_screenSurface->drawBox(0, 176, 634, 23, 15);
_screenSurface->drawBox(0, 175, 634, 24, 15);
_largestClearScreen = false;
} else {
_screenSurface->fillRect(0, Common::Rect(1, 176, 633, 190));
_screenSurface->drawBox(0, 176, 634, 14, 15);
_screenSurface->drawBox(0, 175, 634, 15, 15);
}
_mouse->showMouse();
}