mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-03 22:51:06 +01:00 
			
		
		
		
	Backends: SDL2:+SDL3 Implement SetPlatformImeDataFn (amends). (#6071, #1953) + fix SDL3 setting PlatformHandleRaw. (#6146)
This commit is contained in:
		@@ -4819,8 +4819,12 @@ void ImGui::EndFrame()
 | 
			
		||||
    ErrorCheckEndFrameSanityChecks();
 | 
			
		||||
 | 
			
		||||
    // Notify Platform/OS when our Input Method Editor cursor has moved (e.g. CJK inputs using Microsoft IME)
 | 
			
		||||
    if (g.IO.SetPlatformImeDataFn && memcmp(&g.PlatformImeData, &g.PlatformImeDataPrev, sizeof(ImGuiPlatformImeData)) != 0)
 | 
			
		||||
        g.IO.SetPlatformImeDataFn(GetMainViewport(), &g.PlatformImeData);
 | 
			
		||||
    ImGuiPlatformImeData* ime_data = &g.PlatformImeData;
 | 
			
		||||
    if (g.IO.SetPlatformImeDataFn && memcmp(ime_data, &g.PlatformImeDataPrev, sizeof(ImGuiPlatformImeData)) != 0)
 | 
			
		||||
    {
 | 
			
		||||
        IMGUI_DEBUG_LOG_IO("Calling io.SetPlatformImeDataFn(): WantVisible: %d, InputPos (%.2f,%.2f)\n", ime_data->WantVisible, ime_data->InputPos.x, ime_data->InputPos.y);
 | 
			
		||||
        g.IO.SetPlatformImeDataFn(GetMainViewport(), ime_data);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // Hide implicit/fallback "Debug" window if it hasn't been used
 | 
			
		||||
    g.WithinFrameScopeWithImplicitWindow = false;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user