imgui: fix clang-analyzer warnings

This commit is contained in:
Sebastian Krzyszkowiak 2019-06-06 02:49:52 +02:00
parent 0f3a5ca25e
commit f701df6100
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -80,7 +80,7 @@ static void ImGui_ImplAllegro5_SetupRenderState(ImDrawData* draw_data) {
// (this used to be set in io->RenderDrawListsFn and called by ImGui::Render(), but you can now call this directly from your main loop)
SYMBOL_INTERNAL void ImGui_ImplAllegro5_RenderDrawData(ImDrawData* draw_data) {
// Avoid rendering when minimized
if (draw_data->DisplaySize.x <= 0.0f || draw_data->DisplaySize.y <= 0.0f) {
if (draw_data->DisplaySize.x <= 0.0F || draw_data->DisplaySize.y <= 0.0F) {
return;
}