Sfoglia il codice sorgente

Minor coding convention fix.

Ryan C. Gordon 10 anni fa
parent
commit
0cf81fbdf9
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/video/x11/SDL_x11keyboard.c

+ 2 - 1
src/video/x11/SDL_x11keyboard.c

@@ -307,8 +307,9 @@ X11_UpdateKeymap(_THIS)
     
 #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