mirror of
https://github.com/encounter/SDL.git
synced 2025-12-17 00:47:15 +00:00
Revert "Add and use SDL_FALLTHROUGH for fallthroughs"
This reverts commit 66a08aa391.
This causes problems with older compilers:
https://github.com/libsdl-org/SDL/pull/4791#issuecomment-966630997
This commit is contained in:
@@ -323,7 +323,7 @@ DirectFB_WM_ProcessEvent(_THIS, SDL_Window * window, DFBWindowEvent * evt)
|
||||
}
|
||||
if (window->flags & SDL_WINDOW_MAXIMIZED)
|
||||
return 1;
|
||||
SDL_FALLTHROUGH;
|
||||
/* fall through */
|
||||
default:
|
||||
windata->wm_grab = pos;
|
||||
if (grabbed_window != NULL)
|
||||
|
||||
@@ -261,7 +261,7 @@ ProcessWindowEvent(_THIS, SDL_Window *sdlwin, DFBWindowEvent * evt)
|
||||
SDL_SendWindowEvent(sdlwin, SDL_WINDOWEVENT_MOVED,
|
||||
evt->x, evt->y);
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
/* fall throught */
|
||||
case DWET_SIZE:
|
||||
/* FIXME: what about < 0 */
|
||||
evt->w -= (windata->theme.right_size + windata->theme.left_size);
|
||||
|
||||
Reference in New Issue
Block a user