From 072db7b005ee19f8e53fd4d41491d6af8aa25790 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 12 Mar 2022 01:56:40 +0300 Subject: [PATCH] SDL_windowskeyboard.c (IME_IsTextInputShown): remove unused local vars. --- src/video/windows/SDL_windowskeyboard.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/video/windows/SDL_windowskeyboard.c b/src/video/windows/SDL_windowskeyboard.c index d9bd32a81..deea44be2 100644 --- a/src/video/windows/SDL_windowskeyboard.c +++ b/src/video/windows/SDL_windowskeyboard.c @@ -761,9 +761,6 @@ IME_ClearComposition(SDL_VideoData *videodata) static SDL_bool IME_IsTextInputShown(SDL_VideoData* videodata) { - BOOL result; - HIMC himc; - if (!videodata->ime_initialized || !videodata->ime_available || !videodata->ime_enabled) return SDL_FALSE; @@ -1130,6 +1127,7 @@ UILess_GetCandidateList(SDL_VideoData *videodata, ITfCandidateListUIElement *pca DWORD pgstart = 0; DWORD pgsize = 0; UINT i, j; + if (IME_ShowCandidateList(videodata) < 0) return;