mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
MORTEVIELLE: Reduce the scope of a variable
This commit is contained in:
parent
fe916f1794
commit
9d6ae42f65
@ -1728,12 +1728,12 @@ void MortevielleEngine::showMoveMenuAlert() {
|
|||||||
void MortevielleEngine::showConfigScreen() {
|
void MortevielleEngine::showConfigScreen() {
|
||||||
// FIXME: need a DOS palette, index 9 (light blue). Also we should show DOS font here
|
// FIXME: need a DOS palette, index 9 (light blue). Also we should show DOS font here
|
||||||
Common::String tmpStr;
|
Common::String tmpStr;
|
||||||
int width, cy = 0;
|
int cy = 0;
|
||||||
clearScreen();
|
clearScreen();
|
||||||
do {
|
do {
|
||||||
++cy;
|
++cy;
|
||||||
tmpStr = getString(cy + kStartingScreenStringIndex);
|
tmpStr = getString(cy + kStartingScreenStringIndex);
|
||||||
width = _screenSurface->getStringWidth(tmpStr);
|
int width = _screenSurface->getStringWidth(tmpStr);
|
||||||
_text->displayStr(tmpStr, 320 - width / 2, cy * 8, 80, 1, 2);
|
_text->displayStr(tmpStr, 320 - width / 2, cy * 8, 80, 1, 2);
|
||||||
} while (cy != 20);
|
} while (cy != 20);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user