Minor coding convention fix.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 14 Aug 2015 23:30:46 -0400
changeset 9843 13bbc6d4ab12
parent 9842 8a89b58895c1
child 9844 7e9624bde3a7
Minor coding convention fix.
src/video/x11/SDL_x11keyboard.c
--- a/src/video/x11/SDL_x11keyboard.c	Fri Aug 14 16:23:31 2015 +0100
+++ b/src/video/x11/SDL_x11keyboard.c	Fri Aug 14 23:30:46 2015 -0400
@@ -307,8 +307,9 @@
     
 #if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
     XkbStateRec state;
-    if(0 == X11_XkbGetState(data->display, XkbUseCoreKbd, &state))
+    if (X11_XkbGetState(data->display, XkbUseCoreKbd, &state == Success)) {
         group = state.group;
+    }
 #endif