mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-29 18:05:00 +02:00
Fix build on 64-bit systems
This commit is contained in:
parent
a0690ba59e
commit
59a456690b
@ -139,7 +139,7 @@ void TextDialog::exec() {
|
|||||||
if (firstRow + rowsPerPage*2 -1 < text->size()) {
|
if (firstRow + rowsPerPage*2 -1 < text->size()) {
|
||||||
firstRow += rowsPerPage-1;
|
firstRow += rowsPerPage-1;
|
||||||
} else {
|
} else {
|
||||||
firstRow = max(0u, text->size() - rowsPerPage);
|
firstRow = max(0lu, text->size() - rowsPerPage);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case InputManager::SETTINGS:
|
case InputManager::SETTINGS:
|
||||||
|
@ -133,7 +133,7 @@ void TextManualDialog::exec() {
|
|||||||
break;
|
break;
|
||||||
case InputManager::ALTRIGHT:
|
case InputManager::ALTRIGHT:
|
||||||
if (firstRow + rowsPerPage*2 -1 < pages[page].text.size()) firstRow += rowsPerPage-1;
|
if (firstRow + rowsPerPage*2 -1 < pages[page].text.size()) firstRow += rowsPerPage-1;
|
||||||
else firstRow = max(0u, pages[page].text.size() - rowsPerPage);
|
else firstRow = max(0lu, pages[page].text.size() - rowsPerPage);
|
||||||
break;
|
break;
|
||||||
case InputManager::CANCEL:
|
case InputManager::CANCEL:
|
||||||
case InputManager::SETTINGS:
|
case InputManager::SETTINGS:
|
||||||
|
Loading…
Reference in New Issue
Block a user