mirror of https://github.com/snes9xgit/snes9x.git
imgui: Silence a few warnings.
This commit is contained in:
parent
8719a4761e
commit
2313ae00b7
|
@ -70,7 +70,7 @@ static void ImGui_DrawPressedKeys(int spacing)
|
||||||
draw_list->AddRectFilled(ImVec2(x, y),
|
draw_list->AddRectFilled(ImVec2(x, y),
|
||||||
ImVec2(x + box_width, y + box_height),
|
ImVec2(x + box_width, y + box_height),
|
||||||
settings.box_color,
|
settings.box_color,
|
||||||
spacing / 2);
|
spacing / 2.0f);
|
||||||
|
|
||||||
draw_list->AddText(ImVec2(x + spacing, y + spacing), settings.text_color, string);
|
draw_list->AddText(ImVec2(x + spacing, y + spacing), settings.text_color, string);
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ static void ImGui_DrawPressedKeys(int spacing)
|
||||||
draw_list->AddRectFilled(ImVec2(x, y),
|
draw_list->AddRectFilled(ImVec2(x, y),
|
||||||
ImVec2(x + box_width, y + box_height),
|
ImVec2(x + box_width, y + box_height),
|
||||||
settings.box_color,
|
settings.box_color,
|
||||||
spacing / 2);
|
spacing / 2.0f);
|
||||||
x += spacing;
|
x += spacing;
|
||||||
y += spacing;
|
y += spacing;
|
||||||
|
|
||||||
|
@ -135,7 +135,7 @@ static void ImGui_DrawTextOverlay(const char *text,
|
||||||
draw_list->AddRectFilled(ImVec2(x, y),
|
draw_list->AddRectFilled(ImVec2(x, y),
|
||||||
ImVec2(x + box_size.x, y + box_size.y),
|
ImVec2(x + box_size.x, y + box_size.y),
|
||||||
settings.box_color,
|
settings.box_color,
|
||||||
settings.spacing / 2);
|
settings.spacing / 2.0f);
|
||||||
|
|
||||||
draw_list->AddText(nullptr, 0.0f, ImVec2(x + padding, y + padding), settings.text_color, text, nullptr, wrap_at);
|
draw_list->AddText(nullptr, 0.0f, ImVec2(x + padding, y + padding), settings.text_color, text, nullptr, wrap_at);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue