Skip to content

Commit

Permalink
Couple of minor fixes to type-in effect selection in the menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed May 22, 2010
1 parent 12bac7c commit 2d7133d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions doomsday/plugins/common/src/hu_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1682,7 +1682,8 @@ void Hu_MenuDrawer(void)
}
else if(currentMenu->items[i].text)
{
GL_DrawText(currentMenu->items[i].text, pos[VX], pos[VY], currentMenu->font, DTF_ALIGN_TOPLEFT, 0, r, g, b, menuAlpha, false);
DGL_Color4f(r, g, b, menuAlpha);
M_DrawMenuText2(currentMenu->items[i].text, pos[VX], pos[VY], currentMenu->font);
}

pos[VY] += currentMenu->itemHeight;
Expand Down Expand Up @@ -2567,7 +2568,7 @@ void M_DrawLoad(void)
{
M_DrawSaveLoadBorder(LoadDef.x - 4, SAVEGAME_BOX_YOFFSET + LoadDef.y + (menu->itemHeight * i), width + 16);
DGL_Color4f(i == itemOn? r : menu->color[0], i == itemOn? g : menu->color[1], i == itemOn? b : menu->color[2], menuAlpha);
M_DrawMenuText2(savegamestrings[i], LoadDef.x, SAVEGAME_BOX_YOFFSET + LoadDef.y + (menu->itemHeight * i), menu->font);
M_DrawMenuText3(savegamestrings[i], LoadDef.x, SAVEGAME_BOX_YOFFSET + LoadDef.y + (menu->itemHeight * i), menu->font, DTF_ALIGN_TOPLEFT|DTF_NO_EFFECTS);
}
}

Expand Down Expand Up @@ -2596,7 +2597,7 @@ void M_DrawSave(void)
{
M_DrawSaveLoadBorder(SaveDef.x - 4, SAVEGAME_BOX_YOFFSET + SaveDef.y + (menu->itemHeight * i), width + 16);
DGL_Color4f(i == itemOn? r : menu->color[0], i == itemOn? g : menu->color[1], i == itemOn? b : menu->color[2], menuAlpha);
M_DrawMenuText2(savegamestrings[i], SaveDef.x, SAVEGAME_BOX_YOFFSET + SaveDef.y + (menu->itemHeight * i), menu->font);
M_DrawMenuText3(savegamestrings[i], SaveDef.x, SAVEGAME_BOX_YOFFSET + SaveDef.y + (menu->itemHeight * i), menu->font, DTF_ALIGN_TOPLEFT|DTF_NO_EFFECTS);
}

if(saveStringEnter)
Expand Down
3 changes: 2 additions & 1 deletion doomsday/plugins/common/src/hu_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,8 @@ void WI_DrawPatch4(patchid_t patch, int x, int y, const char* altstring,
* and/or shadow when they should. This should be addressed
* by redesigning the API for patch replacement.
*/
textFlags &= ~DTF_NO_EFFECTS;
if(cfg.menuEffects)
textFlags &= ~DTF_NO_EFFECTS;

// A user replacement?
if(patchString)
Expand Down

0 comments on commit 2d7133d

Please sign in to comment.