font.c was created, and the Makefiles updated to reflect this. It contains reload_fon...
commit96a1c340a214a3c542d8f08d2ca40d3f8897b985
authordwk <dwk@b022f027-f587-4676-bc72-f0cf7b603704>
Wed, 22 Aug 2007 04:08:20 +0000 (22 04:08 +0000)
committerdwk <dwk@b022f027-f587-4676-bc72-f0cf7b603704>
Wed, 22 Aug 2007 04:08:20 +0000 (22 04:08 +0000)
treef992f9e92ab6c938a4c463fd628fdabd281e1700
parent03295b40092ac6bbff809739ff0b51fc1d9f1fc2
font.c was created, and the Makefiles updated to reflect this. It contains reload_fonts(), load_fonts(), render_white_text(), and free_fonts(), all moved from graphics.c.

Currently memory for widgets is leaked when the window is resized, because free_panel() is in the process of being removed. To put it in again, comment out the inner for loop in free_gui() of gui.c; uncomment every call to free_panel(), at the end of game.c, options.c, and menu.c; and remove the #if 0 from around free_panel() in graphics.c. And create the function prototype for free_panel() in graphics.h as well.

Added some enumeration values and struct scrollbar_t and struct textarea_t, none of which do anything, into graphics.h.

The rates at which the scrolling and parallax main menu backgrounds was changed, from hard-coded values into menu_data::quality.

Some temporary code which updates the textbox's text to the screen size is in place. This is what it might do in the future, but right now it's a bad way of doing it.

Many unused parameters in settings.h were removed. The print_warning("Creating settings file ...") was moved so that it is not printed if the settings file could not be created. (Before it said "Creating settings file...", then "Can't create settings file...".)

The doc/ subdirectory was created (ignored by svn), which contains Doxygen documentation. Skeleton Doxygen documentation comments were added to every source file, and part of the readme was copied into the \mainpage section of a documentation comment in xuni.c.
20 files changed:
Makefile
Makewin
font.c [new file with mode: 0644]
font.h [new file with mode: 0644]
game.c
game.h
graphics.c
graphics.h
gui.c
gui.h
loop.c
loop.h
menu.c
menu.h
options.c
options.h
settings.c
settings.h
xuni.c
xuni.h