SCI: move menu window inside the screen, if parts of it are outside (happens in multilingual sq3 and lsl3)
svn-id: r48686
This commit is contained in:
parent
08ad84d556
commit
2ac3e93dab
1 changed files with 5 additions and 0 deletions
|
@ -540,6 +540,11 @@ void GfxMenu::drawMenu(uint16 oldMenuId, uint16 newMenuId) {
|
||||||
if (!maxTextRightAlignedWidth)
|
if (!maxTextRightAlignedWidth)
|
||||||
_menuRect.right -= 5;
|
_menuRect.right -= 5;
|
||||||
|
|
||||||
|
// if part of menu window is outside the screen, move it into the screen (this happens in multilingual sq3 and lsl3)
|
||||||
|
if (_menuRect.right > _screen->getWidth()) {
|
||||||
|
_menuRect.translate(-(_menuRect.right - _screen->getWidth()), 0);
|
||||||
|
}
|
||||||
|
|
||||||
// Save background
|
// Save background
|
||||||
_menuSaveHandle = _paint16->bitsSave(_menuRect, SCI_SCREEN_MASK_VISUAL);
|
_menuSaveHandle = _paint16->bitsSave(_menuRect, SCI_SCREEN_MASK_VISUAL);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue