Selaa lähdekoodia

test: Fix a window parenting bug in testmodal

(cherry picked from commit 390fe653237a11c736801af1c7ada5dd39e73a2f)
Frank Praznik 1 kuukausi sitten
vanhempi
commit
28721e3cd2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      test/testmodal.c

+ 1 - 1
test/testmodal.c

@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
                     }
 
                     if (e.key.key == SDLK_M) {
-                        if (SDL_SetWindowParent(w2, w2)) {
+                        if (SDL_SetWindowParent(w2, w1)) {
                             if (SDL_SetWindowModal(w2, true)) {
                                 SDL_SetWindowTitle(w2, "Modal Window");
                             }