Skip to content

Commit c6362b4

Browse files
committed
tests: Revert some leftover testing code
1 parent c91f9f6 commit c6362b4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/test/SDL_test_common.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2511,13 +2511,7 @@ SDL_AppResult SDLTest_CommonEventMainCallbacks(SDLTest_CommonState *state, const
25112511
/* Ctrl-G toggle mouse grab */
25122512
SDL_Window *window = SDL_GetWindowFromEvent(event);
25132513
if (window) {
2514-
if (SDL_RectEmpty(SDL_GetWindowMouseRect(window))) {
2515-
SDL_Rect r = { 10, 10, 200, 200};
2516-
SDL_SetWindowMouseRect(window, &r);
2517-
} else {
2518-
SDL_SetWindowMouseRect(window, NULL);
2519-
}
2520-
//SDL_SetWindowMouseGrab(window, !SDL_GetWindowMouseGrab(window));
2514+
SDL_SetWindowMouseGrab(window, !SDL_GetWindowMouseGrab(window));
25212515
}
25222516
}
25232517
break;

0 commit comments

Comments
 (0)