Debian Codegraph @

debian/patches/sdl-quit

raw
1 Description: sdl-quit
2 Add SDL_QUIT event
3 Author: William (Bill) Kendrick <[email protected]>
4 Bug-Debian: http://bugs.debian.org/299431
5 Reviewed-By: Christian T. Steigies <[email protected]>
6 Last-Update: 2005-03-19
7
8 --- gemdropx-0.9.orig/gemdropx.c
9 +++ gemdropx-0.9/gemdropx.c
10 @@ -1016,6 +1016,10 @@ void getkey(int handle_expose)
11
12 key = event.key.keysym.sym;
13 }
14 + else if (event.type == SDL_QUIT)
15 + {
16 + key = SDLK_ESCAPE;
17 + }
18 else if (event.type == SDL_MOUSEBUTTONDOWN)
19 {
20 /* Mouse counts as keyboard: */