Skip to content

Commit

Permalink
Doom|Heretic|Hexen: Fixed round off error in HUD region calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jan 2, 2012
1 parent 812e3e1 commit d82a945
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doomsday/plugins/jdoom/src/st_stuff.c
Expand Up @@ -2558,8 +2558,8 @@ static void drawUIWidgetsForPlayer(player_t* plr)
int availHeight;

displayRegion.origin.x = displayRegion.origin.y = 0;
displayRegion.size.width = portSize.width / scale;
displayRegion.size.height = portSize.height / scale;
displayRegion.size.width = .5f + portSize.width / scale;
displayRegion.size.height = .5f + portSize.height / scale;

if(hud->statusbarActive)
{
Expand Down
4 changes: 2 additions & 2 deletions doomsday/plugins/jheretic/src/st_stuff.c
Expand Up @@ -2431,8 +2431,8 @@ static void drawUIWidgetsForPlayer(player_t* plr)
int availHeight;

displayRegion.origin.x = displayRegion.origin.y = 0;
displayRegion.size.width = portSize.width / scale;
displayRegion.size.height = portSize.height / scale;
displayRegion.size.width = .5f + portSize.width / scale;
displayRegion.size.height = .5f + portSize.height / scale;

if(hud->statusbarActive)
{
Expand Down
4 changes: 2 additions & 2 deletions doomsday/plugins/jhexen/src/st_stuff.c
Expand Up @@ -3643,8 +3643,8 @@ static void drawUIWidgetsForPlayer(player_t* plr)
int posX, posY, availWidth, availHeight;

displayRegion.origin.x = displayRegion.origin.y = 0;
displayRegion.size.width = portSize.width / scale;
displayRegion.size.height = portSize.height / scale;
displayRegion.size.width = .5f + portSize.width / scale;
displayRegion.size.height = .5f + portSize.height / scale;

if(hud->statusbarActive)
{
Expand Down

0 comments on commit d82a945

Please sign in to comment.