Skip to content

Commit

Permalink
Fixed positioning of the map name in the automap if set to automatica…
Browse files Browse the repository at this point in the history
…lly show the statusbar if the current screen mode is actually fullscreen.
  • Loading branch information
danij committed Jan 26, 2009
1 parent ca4ad39 commit 420ddf0
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions doomsday/plugins/common/src/am_map.c
Expand Up @@ -3355,25 +3355,23 @@ static void renderMapName(void)
if(cfg.setBlocks < 13)
{
#if !__JDOOM64__
if(cfg.setBlocks == 12)
#endif
{ // We may need to adjust for the height of the HUD icons.
otherY = y;
otherY += -(y * (cfg.hudScale / 10.0f));

if(y > otherY)
y = otherY;
}
#if !__JDOOM64__
else if(cfg.setBlocks <= 11 || cfg.automapHudDisplay == 2)
if(cfg.setBlocks <= 11 || cfg.automapHudDisplay == 2)
{ // We may need to adjust for the height of the statusbar
otherY = ST_Y;
otherY += ST_HEIGHT * (1 - (cfg.statusbarScale / 20.0f));

if(y > otherY)
y = otherY;
}
else if(cfg.setBlocks == 12)
#endif
{ // We may need to adjust for the height of the HUD icons.
otherY = y;
otherY += -(y * (cfg.hudScale / 10.0f));

if(y > otherY)
y = otherY;
}
}

Draw_BeginZoom(.4f, x, y);
Expand Down

0 comments on commit 420ddf0

Please sign in to comment.