mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-30 05:45:29 +08:00
Backends: Allegro5: Fixed missing invisible mouse cursor, broken by ee8941e0d.
This commit is contained in:
@@ -647,6 +647,9 @@ void ImGui_ImplAllegro5_NewFrame()
|
|||||||
ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData();
|
ImGui_ImplAllegro5_Data* bd = ImGui_ImplAllegro5_GetBackendData();
|
||||||
IM_ASSERT(bd != nullptr && "Context or backend not initialized! Did you call ImGui_ImplAllegro5_Init()?");
|
IM_ASSERT(bd != nullptr && "Context or backend not initialized! Did you call ImGui_ImplAllegro5_Init()?");
|
||||||
|
|
||||||
|
if (!bd->MouseCursorInvisible)
|
||||||
|
ImGui_ImplAllegro5_CreateDeviceObjects();
|
||||||
|
|
||||||
// Setup display size (every frame to accommodate for window resizing)
|
// Setup display size (every frame to accommodate for window resizing)
|
||||||
ImGuiIO& io = ImGui::GetIO();
|
ImGuiIO& io = ImGui::GetIO();
|
||||||
int w, h;
|
int w, h;
|
||||||
|
|||||||
Reference in New Issue
Block a user