Made pick_font_size() pick a more realistic size when the X dimension is
commit777888a3fed3683fbd71d29f1b9d205bd03dc926
authordwk <dwk@b022f027-f587-4676-bc72-f0cf7b603704>
Fri, 20 Jul 2007 21:49:34 +0000 (20 21:49 +0000)
committerdwk <dwk@b022f027-f587-4676-bc72-f0cf7b603704>
Fri, 20 Jul 2007 21:49:34 +0000 (20 21:49 +0000)
tree46cb6d58a94245e8b529e9f3663f76bcb575a395
parent23886e0466a42c8754c525bb9199ebed098295c9
Made pick_font_size() pick a more realistic size when the X dimension is
smallest by multiplying the X dimension by 1.2.

Greatly simplified paint_button() and added four extra arguments to it:
xp, yp, w, and h. Used this new function to blit six buttons to the main
menu. Created two functions to detect whether the mouse is in a button
and to handle things if it is. The data should be stored in a static
variable rather than get duplicated.

Made SDL_QUIT, resize_menu_images(), etc get handled by menu_event() etc
instead of loop.c::process_event().

Changed the FPS message to be more legible and to fit onto the screen
more often.

Removed some header files that were not being used.

All of these changes have been tested with Valgrind.
Makefile
game.c
game.h
graphics.c
graphics.h
loop.c
menu.c
menu.h
xuni.c