This commit is contained in:
twinaphex 2018-10-10 16:18:29 +02:00
parent 1fae526337
commit 04cc181771
2 changed files with 6 additions and 8 deletions

View File

@ -87,7 +87,8 @@ static void gdi_render_msg(
const struct font_params *params)
{
float x, y, scale, drop_mod, alpha, drop_alpha;
int i, drop_x, drop_y, msg_strlen;
int drop_x, drop_y, msg_strlen;
unsigned i;
unsigned newX, newY, newDropX, newDropY;
unsigned align;
unsigned red, green, blue;
@ -178,9 +179,7 @@ static void gdi_render_msg(
if (msg_list)
{
for (i = 0; i < msg_list->size; i++)
{
TextOut(font->gdi->memDC, newDropX, newDropY + (textSize.cy * i), msg_list->elems[i].data, utf8len(msg_list->elems[i].data));
}
}
}
@ -189,9 +188,7 @@ static void gdi_render_msg(
if (msg_list)
{
for (i = 0; i < msg_list->size; i++)
{
TextOut(font->gdi->memDC, newX, newY + (textSize.cy * i), msg_list->elems[i].data, utf8len(msg_list->elems[i].data));
}
string_list_free(msg_list);
}

View File

@ -396,11 +396,12 @@ void cheat_manager_load_cb_second_pass(char *key, char *value)
bool cheat_manager_load(const char *path, bool append)
{
unsigned orig_size;
unsigned cheats = 0, i;
config_file_cb_t cb ;
config_file_cb_t cb;
config_file_t *conf = NULL;
cb.config_file_new_entry_cb = cheat_manager_load_cb_first_pass ;
config_file_t *conf = NULL ;
unsigned orig_size ;
cheat_manager_state.loading_cheat_size = 0 ;