mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-11-03 17:24:24 +00:00 
			
		
		
		
	Added ImGuiMouseCursor_Progress mouse cursor 8a35386+ support in SDL2,SDL3,Win32,Allegro5 backends.
Amend 8a35386
			
			
This commit is contained in:
		@@ -20,7 +20,7 @@
 | 
			
		||||
 | 
			
		||||
// CHANGELOG
 | 
			
		||||
// (minor and older changes stripped away, please see git history for details)
 | 
			
		||||
//  2025-02-18: Added ImGuiMouseCursor_Wait mouse cursor support.
 | 
			
		||||
//  2025-02-18: Added ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress mouse cursor support.
 | 
			
		||||
//  2025-01-06: Avoid calling al_set_mouse_cursor() repeatedly since it appears to leak on on X11 (#8256).
 | 
			
		||||
//  2024-08-22: moved some OS/backend related function pointers from ImGuiIO to ImGuiPlatformIO:
 | 
			
		||||
//               - io.GetClipboardTextFn    -> platform_io.Platform_GetClipboardTextFn
 | 
			
		||||
@@ -596,6 +596,7 @@ static void ImGui_ImplAllegro5_UpdateMouseCursor()
 | 
			
		||||
        case ImGuiMouseCursor_ResizeNESW:   cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NE; break;
 | 
			
		||||
        case ImGuiMouseCursor_ResizeNWSE:   cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_RESIZE_NW; break;
 | 
			
		||||
        case ImGuiMouseCursor_Wait:         cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_BUSY; break;
 | 
			
		||||
        case ImGuiMouseCursor_Progress:     cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_PROGRESS; break;
 | 
			
		||||
        case ImGuiMouseCursor_NotAllowed:   cursor_id = ALLEGRO_SYSTEM_MOUSE_CURSOR_UNAVAILABLE; break;
 | 
			
		||||
        }
 | 
			
		||||
        al_set_system_mouse_cursor(bd->Display, cursor_id);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user