diff options
Diffstat (limited to 'src/engine')
| -rw-r--r-- | src/engine/client/ec_gfx.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/engine/client/ec_gfx.c b/src/engine/client/ec_gfx.c index 661820ea..516e68a3 100644 --- a/src/engine/client/ec_gfx.c +++ b/src/engine/client/ec_gfx.c @@ -1039,7 +1039,9 @@ void gfx_text_ex(TEXT_CURSOR *cursor, const char *text, int length) if(compare.x-cursor->start_x > cursor->line_width) { draw_x = cursor->start_x; - draw_y += size; /* is this correct? -kma */ + draw_y += size; + draw_x = (int)(draw_x * fake_to_screen_x) / fake_to_screen_x; /* realign */ + draw_y = (int)(draw_y * fake_to_screen_y) / fake_to_screen_y; } this_batch = wlen; @@ -1060,7 +1062,9 @@ void gfx_text_ex(TEXT_CURSOR *cursor, const char *text, int length) if(*current == '\n') { draw_x = cursor->start_x; - draw_y += size; /* is this correct? -kma */ + draw_y += size; + draw_x = (int)(draw_x * fake_to_screen_x) / fake_to_screen_x; /* realign */ + draw_y = (int)(draw_y * fake_to_screen_y) / fake_to_screen_y; current++; continue; } |