mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
X11_WaitEventTimeout: remove unreachable return
If that condition was reachable, the return value should be negative to indicate that waiting for the timeout failed. Otherwise, SDL_WaitEventTimeout would incorrectly return early.
This commit is contained in:
parent
d0de4c625a
commit
0403fa8aa6
1 changed files with 0 additions and 4 deletions
|
|
@ -1602,10 +1602,6 @@ X11_WaitEventTimeout(_THIS, int timeout)
|
|||
SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata;
|
||||
Display *display;
|
||||
XEvent xevent;
|
||||
|
||||
if (!videodata) {
|
||||
return 0;
|
||||
}
|
||||
display = videodata->display;
|
||||
|
||||
SDL_zero(xevent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue