Fix T47868: Check Box shape doesn't scale

This commit is contained in:
Campbell Barton 2016-03-21 15:16:43 +11:00
parent 2683dd8b93
commit 8238f5b33b
Notes: blender-bot 2023-02-14 08:07:50 +01:00
Referenced by issue #47868, Check Boxes change shape depending on zoom / DPI
1 changed files with 1 additions and 1 deletions

View File

@ -3253,7 +3253,7 @@ static void widget_optionbut(uiWidgetColors *wcol, rcti *rect, int state, int UN
recttemp.ymax -= delta;
/* half rounded */
rad = 0.2f * U.widget_unit;
rad = BLI_rcti_size_y(&recttemp) / 3;
round_box_edges(&wtb, UI_CNR_ALL, &recttemp, rad);
/* decoration */