UI: Fix node label overflow on high-DPI

Ref D9099
This commit is contained in:
Yevgeny Makarov 2020-10-09 18:17:13 +11:00 committed by Campbell Barton
parent 2a39b6d4d1
commit 07bd16de5b
1 changed files with 2 additions and 2 deletions

View File

@ -1275,7 +1275,7 @@ static void node_draw_basis(const bContext *C,
showname,
(int)(rct->xmin + NODE_MARGIN_X),
(int)(rct->ymax - NODE_DY),
(short)(iconofs - rct->xmin - 18.0f),
(short)(iconofs - rct->xmin - (18.0f * U.dpi_fac)),
(short)NODE_DY,
NULL,
0,
@ -1456,7 +1456,7 @@ static void node_draw_hidden(const bContext *C,
showname,
round_fl_to_int(rct->xmin + NODE_MARGIN_X),
round_fl_to_int(centy - NODE_DY * 0.5f),
(short)(BLI_rctf_size_x(rct) - 18.0f - 12.0f),
(short)(BLI_rctf_size_x(rct) - ((18.0f + 12.0f) * U.dpi_fac)),
(short)NODE_DY,
NULL,
0,