Skip to content

Commit 7e2ada2

Browse files
committed
- bugfixes for text drawing code
1 parent 42c78c6 commit 7e2ada2

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

src_rebuild/Game/C/pres.c

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,15 @@ int PrintStringHires(char* string, int x, int y)
212212
{
213213
if(showMap)
214214
SetHiresFontTexture(0);
215+
else
216+
SetHiresFontTexture(1);
215217

216-
DrawButton(chr, current->primptr, width, y);
218+
current->primptr = (char*)DrawButton(chr, current->primptr, width, y);
217219

218220
if (showMap)
219221
SetHiresFontTexture(1);
222+
else
223+
SetHiresFontTexture(0);
220224

221225
width += 24;
222226
x += 24;
@@ -612,13 +616,17 @@ int PrintString(char *string, int x, int y)
612616
else
613617
{
614618
if (showMap == 0)
615-
font = (SPRT *)SetFontTPage(font);
619+
{
620+
font = (SPRT*)SetFontTPage(font);
621+
}
616622

617623
font = (SPRT *)DrawButton(chr, font, width, y);
618624
width += 24;
619625

620626
if (showMap != 0)
621-
font = (SPRT *)SetFontTPage(font);
627+
{
628+
font = (SPRT*)SetFontTPage(font);
629+
}
622630
}
623631
}
624632

0 commit comments

Comments
 (0)