Skip to content

Commit e7c6c15

Browse files
committed
client/m_items.c: another menu rendering edit
1 parent ce28ffa commit e7c6c15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

engine/client/m_items.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,8 @@ static void MenuDrawItems(int xpos, int ypos, menuoption_t *option, emenu_t *men
671671
break;
672672
case mt_picture:
673673
p = R2D_SafeCachePic(option->picture.picturename);
674-
if (R_GetShaderSizes(p, NULL, NULL, false)>0) R2D_ScalePic(xpos+option->common.posx, ypos+option->common.posy, option->common.width, option->common.height, p);
674+
if (R_GetShaderSizes(p, &pw, &ph, false)>0)
675+
R2D_ScalePic(xpos+option->common.posx, ypos+option->common.posy, pw, ph, p);
675676
break;
676677
case mt_framestart:
677678
ypos += framescroll;

0 commit comments

Comments
 (0)