Unified handling of SDL_MOUSEBUTTONUP, SDL_MOUSEBUTTONDOWN, and SDL_MOUSEMOTION in...
commitdc91bf7ac96737950d02f696ee46119c05bd8065
authordwk <dwk@b022f027-f587-4676-bc72-f0cf7b603704>
Wed, 22 Aug 2007 21:24:17 +0000 (22 21:24 +0000)
committerdwk <dwk@b022f027-f587-4676-bc72-f0cf7b603704>
Wed, 22 Aug 2007 21:24:17 +0000 (22 21:24 +0000)
tree0dc07862e7a9e14c43c8b7eedf3f681789b70c97
parent8ad4ff2a8e724aacd50a4f04dbdb46d4863a1953
Unified handling of SDL_MOUSEBUTTONUP, SDL_MOUSEBUTTONDOWN, and SDL_MOUSEMOTION in game.c, menu.c, and options.c, putting the result in loop.c. (The old code is still there, just commented out.) This was quite straightforward: some functions had to be made non-static; data had to be changed to game_data etc; and if statements had to be placed everywhere a file-specific function was called.

Made set_*_widget_sel() and *_perform_click() (of game.c, menu.c, and options.c) non-static so that they could be called from loop.c.

Changed process_event()'s SDL_ACTIVEEVENT to use event rather than calling SDL_ActiveState(), the latter being a vestige of the application-focus-bug debugging.

Moved the GDB variable out of src/Make* and into ./Make*, where it is actually used; and removed depend from the list of .PHONY targets, since it's a real file now.

Ran make depend to create the contents of the file depend.

Added to and changed TODO slightly.
15 files changed:
Makefile
Makewin
TODO
src/Makefile
src/Makewin
src/depend
src/game.c
src/game.h
src/graphics.c
src/graphics.h
src/loop.c
src/menu.c
src/menu.h
src/options.c
src/options.h