Skip to content

Commit

Permalink
Fixed automap background scaling in Heretic/Hexen.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Aug 6, 2011
1 parent 3bae629 commit 6293655
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doomsday/plugins/common/src/hu_automap.c
Expand Up @@ -1206,8 +1206,8 @@ static void setupGLStateForMap(uiwidget_t* obj)
// aspect of the quad (sized to map window dimensions).
DGL_Translatef(UIAutomap_MapToFrame(obj, plx) + .5f,
UIAutomap_MapToFrame(obj, ply) + .5f, 0);
DGL_Rotatef(angle, 0, 0, 1);
DGL_Scalef(1, UIWidget_Dimensions(obj)->height / UIWidget_Dimensions(obj)->width, 1);
DGL_Rotatef(360-angle, 0, 0, 1);
DGL_Scalef(1, (float)UIWidget_Dimensions(obj)->height / UIWidget_Dimensions(obj)->width, 1);
DGL_Translatef(-(.5f), -(.5f), 0);

DGL_DrawRecti(UIWidget_Dimensions(obj));
Expand Down

0 comments on commit 6293655

Please sign in to comment.