Skip to content

Commit

Permalink
Made use of the HUD menu background feature to get rid of the old klu…
Browse files Browse the repository at this point in the history
…dges used with the ReadThis/Credits screens. This has the added benefit that the player view(s) won't be drawn while viewing these menus if opaque.
  • Loading branch information
danij committed Oct 30, 2008
1 parent e14a722 commit 5ff7e4e
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 136 deletions.
9 changes: 5 additions & 4 deletions doomsday/plugins/common/include/m_defs.h
Expand Up @@ -71,12 +71,13 @@ typedef struct {
int y;
void (*drawFunc) (void);
int itemCount;
const menuitem_t *items;
const menuitem_t* items;
int lastOn;
int prevMenu; // menutype_t
dpatch_t *font; // Font for menu items.
float *color;
char *background; // Background lump name for this menu (if any).
dpatch_t* font; // Font for menu items.
float* color;
char* background; // Background lump name for this menu (if any).
boolean backgroundIsRaw;
int itemHeight;
// For multipage menus.
int firstItem, numVisItems;
Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/common/src/am_map.c
Expand Up @@ -3480,7 +3480,7 @@ menu_t MapDef = {
0, MENU_OPTIONS,
huFontA,
cfg.menuColor2,
NULL,
NULL, false,
LINEHEIGHT_A,
#if __JHERETIC__
0, 17
Expand Down

0 comments on commit 5ff7e4e

Please sign in to comment.