Skip to content

Commit ce28ffa

Browse files
committed
client/m_items.c: fix menu rendering incorrectly in LibreQuake
1 parent 93257c1 commit ce28ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/client/m_items.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ static void MenuDrawItems(int xpos, int ypos, menuoption_t *option, emenu_t *men
646646
i = (int)(realtime * 10)%maxdots;
647647
p = R2D_SafeCachePic(va(menudotstyle, i+mindot ));
648648
if (R_GetShaderSizes(p, &pw, &ph, false)>0)
649-
R2D_ScalePic(xpos+option->common.posx, ypos+option->common.posy+dotofs, (pw/(float)ph)*option->common.width, option->common.height, p);
649+
R2D_ScalePic(xpos+option->common.posx, ypos+option->common.posy+dotofs, pw, ph, p);
650650
else if ((int)(realtime*4)&1)
651651
Draw_FunString(xpos+option->common.posx, ypos+option->common.posy + (option->common.height-8)/2, "^a^Ue00d");
652652
break;

0 commit comments

Comments
 (0)