Fixed small positioning bug in draw_string due to incorrect signness.

This commit is contained in:
Duncan Frost 2014-06-06 10:18:39 +01:00
parent c158d98e5c
commit 9f01c5d6bf
1 changed files with 3 additions and 3 deletions

View File

@ -1312,7 +1312,7 @@ int gfx_get_string_width(char* buffer)
current_font_sprite_base = RCT2_ADDRESS(RCT2_ADDRESS_CURRENT_FONT_SPRITE_BASE, uint16);
width = 0;
for (char* curr_char = buffer; *curr_char != NULL; curr_char++) {
for (uint8* curr_char = buffer; *curr_char != NULL; curr_char++) {
if (*curr_char >= 0x20) {
//Maybe global not address??
@ -1390,7 +1390,7 @@ int gfx_clip_string(char* buffer, int width)
clipped_width = 0;
last_char = buffer;
for (char* curr_char = buffer; *curr_char != NULL; curr_char++) {
for (uint8* curr_char = buffer; *curr_char != NULL; curr_char++) {
if (*curr_char < 0x20) {
switch(*curr_char) {
case 1:
@ -1774,7 +1774,7 @@ void gfx_draw_string(rct_drawpixelinfo *dpi, char *buffer, int colour, int x, in
//gLastDrawStringX = ecx;
//gLastDrawStringY = edx;
//
int eax, ebx, ecx, edx, esi, edi, ebp;
rct_g1_element* g1_element;