1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 08:14:38 +01:00

Drop unused variables (#3586)

This commit is contained in:
janisozaur
2016-05-13 19:21:58 +02:00
committed by Ted John
parent feb140b84c
commit ca430e1b23
50 changed files with 15 additions and 109 deletions

View File

@@ -67,7 +67,6 @@ int gfx_get_string_width_new_lined(utf8 *text)
utf8 backup;
int codepoint;
int width = 0;
int maxWidth = 0;
while ((codepoint = utf8_get_next(ch, (const utf8**)&nextCh)) != 0) {
if (codepoint == FORMAT_NEWLINE || codepoint == FORMAT_NEWLINE_SMALLER) {
@@ -979,7 +978,6 @@ static void ttf_draw_string_raw_ttf(rct_drawpixelinfo *dpi, const utf8 *text, te
}
}
int fontSize = font_get_size_from_sprite_base(info->font_sprite_base);
int drawX = info->x + fontDesc->offset_x;
int drawY = info->y + fontDesc->offset_y;
int width = surface->w;