diff options
author | Filippos Karapetis | 2015-12-05 22:20:26 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:33:51 +0100 |
commit | 525db01913605f899107bc115fcde418023e700f (patch) | |
tree | 4887f66ee58dceda02d824020150e79c73546bf5 /engines/lab/special.cpp | |
parent | ab1d9771d28cd70659505b900a07574e70113735 (diff) | |
download | scummvm-rg350-525db01913605f899107bc115fcde418023e700f.tar.gz scummvm-rg350-525db01913605f899107bc115fcde418023e700f.tar.bz2 scummvm-rg350-525db01913605f899107bc115fcde418023e700f.zip |
LAB: Simplify several calls to flowText() and rectFill()
Diffstat (limited to 'engines/lab/special.cpp')
-rw-r--r-- | engines/lab/special.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lab/special.cpp b/engines/lab/special.cpp index 6c96d18213..76f9c1576a 100644 --- a/engines/lab/special.cpp +++ b/engines/lab/special.cpp @@ -143,10 +143,10 @@ void doWestPaper() { paperFont = g_lab->_resource->getFont("P:Note.fon"); ntext = g_lab->_resource->getText("Lab:Rooms/Col1"); - CharsPrinted = g_lab->_graphics->flowText(paperFont, -4, 0, 0, false, false, false, true, g_lab->_graphics->VGAScaleX(45), g_lab->_graphics->VGAScaleY(y), g_lab->_graphics->VGAScaleX(158), g_lab->_graphics->VGAScaleY(148), ntext); + CharsPrinted = g_lab->_graphics->flowTextScaled(paperFont, -4, 0, 0, false, false, false, true, 45, y, 158, 148, ntext); delete[] ntext; ntext = g_lab->_resource->getText("Lab:Rooms/Col2"); - CharsPrinted = g_lab->_graphics->flowText(paperFont, -4, 0, 0, false, false, false, true, g_lab->_graphics->VGAScaleX(162), g_lab->_graphics->VGAScaleY(y), g_lab->_graphics->VGAScaleX(275), g_lab->_graphics->VGAScaleY(148), ntext); + CharsPrinted = g_lab->_graphics->flowTextScaled(paperFont, -4, 0, 0, false, false, false, true, 162, y, 275, 148, ntext); delete[] ntext; closeFont(paperFont); @@ -236,7 +236,7 @@ static void drawJournalText() { while (DrawingToPage < JPage) { g_lab->_music->updateMusic(); CurText = (char *)(journaltext + CharsDrawn); - CharsDrawn += g_lab->_graphics->flowText(journalFont, -2, 2, 0, false, false, false, false, g_lab->_graphics->VGAScaleX(52), g_lab->_graphics->VGAScaleY(32), g_lab->_graphics->VGAScaleX(152), g_lab->_graphics->VGAScaleY(148), CurText); + CharsDrawn += g_lab->_graphics->flowTextScaled(journalFont, -2, 2, 0, false, false, false, false, 52, 32, 152, 148, CurText); lastpage = (*CurText == 0); |