Skip to content

Commit

Permalink
CINE: Make selection menu focus rectangle match the original size.
Browse files Browse the repository at this point in the history
Compared against real FW Amiga under UAE and FW Dos under DOSBox.
  • Loading branch information
Johannes Schickel committed Sep 6, 2012
1 parent 33cdddb commit da4e3c4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions engines/cine/gfx.cpp
Expand Up @@ -1001,11 +1001,19 @@ void SelectionMenu::drawMenu(FWRenderer &r, bool top) {
charX = x + 4;

if (i == _selection) {
int color;

if (isAmiga) {
r.drawPlainBox(charX, lineY, _width - 8, FONT_HEIGHT, top ? 2 : 18);
if (top) {
color = 2;
} else {
color = 18;
}
} else {
r.drawPlainBox(charX, lineY, _width - 8, 9, 0);
color = 0;
}

r.drawPlainBox(x + 2, lineY - 1, _width - 3, 9, color);
}

const int size = _elements[i].size();
Expand Down

0 comments on commit da4e3c4

Please sign in to comment.