Browse Source

Fixed build

Sam Lantinga 6 months ago
parent
commit
f8dd73fdb9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testwm.c

+ 1 - 1
test/testwm.c

@@ -214,7 +214,7 @@ static void loop(void)
         if (event.type == SDL_EVENT_MOUSE_BUTTON_UP) {
             SDL_Window *window = SDL_GetMouseFocus();
             if (highlighted_mode.w && window) {
-                SDL_copyp(&state->fullscreen_mode, &highlighted_mode, sizeof(state->fullscreen_mode));
+                SDL_copyp(&state->fullscreen_mode, &highlighted_mode);
                 SDL_SetWindowFullscreenMode(window, &highlighted_mode);
             }
         }