Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Doom: Fixed origin of fullscreen player status/face widget patches
  • Loading branch information
danij-deng committed Dec 19, 2011
1 parent 3717453 commit a2b22f0
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions doomsday/plugins/jdoom/src/st_stuff.c
Expand Up @@ -2118,7 +2118,6 @@ void Face_Drawer(uiwidget_t* obj, int x, int y)
const guidata_face_t* face = (guidata_face_t*)obj->typedata;
const float iconAlpha = uiRendState->pageAlpha * cfg.hudIconAlpha;
patchinfo_t bgInfo;
int alignFlags = 0;
patchid_t pFace;

if(!cfg.hudShown[HUD_FACE]) return;
Expand All @@ -2136,19 +2135,13 @@ void Face_Drawer(uiwidget_t* obj, int x, int y)
DGL_Color4f(1, 1, 1, iconAlpha);
if(R_GetPatchInfo(pFaceBackground[cfg.playerColor[obj->player]], &bgInfo))
{
x = -(bgInfo.geometry.size.width/2);
if(IS_NETGAME)
{
GL_DrawPatch(bgInfo.id, x, -bgInfo.geometry.size.height + 1);
GL_DrawPatch2(bgInfo.id, x, y, ALIGN_BOTTOM);
}
y = -bgInfo.geometry.size.height;
y -= bgInfo.geometry.size.height;
}
else
{
// Not likely but possible.
alignFlags = ALIGN_BOTTOM;
}
GL_DrawPatch2(pFace, x, y, alignFlags);
GL_DrawPatch(pFace, x - (SCREENWIDTH/2 - ST_FACESX), y - 1);

DGL_Disable(DGL_TEXTURE_2D);
DGL_MatrixMode(DGL_MODELVIEW);
Expand Down

0 comments on commit a2b22f0

Please sign in to comment.