UI: fix wrong button padding on high DPI displays in a few places
Differential Revision: https://developer.blender.org/D6928
This commit is contained in:
@@ -396,7 +396,7 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node)
|
||||
NODE_WIDTH(node) - NODE_DY,
|
||||
NODE_DY,
|
||||
0,
|
||||
UI_style_get());
|
||||
UI_style_get_dpi());
|
||||
|
||||
if (node->flag & NODE_MUTED) {
|
||||
uiLayoutSetActive(layout, false);
|
||||
@@ -491,7 +491,7 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node)
|
||||
node->butr.xmax,
|
||||
0,
|
||||
0,
|
||||
UI_style_get());
|
||||
UI_style_get_dpi());
|
||||
|
||||
if (node->flag & NODE_MUTED) {
|
||||
uiLayoutSetActive(layout, false);
|
||||
@@ -523,7 +523,7 @@ static void node_update_basis(const bContext *C, bNodeTree *ntree, bNode *node)
|
||||
NODE_WIDTH(node) - NODE_DY,
|
||||
NODE_DY,
|
||||
0,
|
||||
UI_style_get());
|
||||
UI_style_get_dpi());
|
||||
|
||||
if (node->flag & NODE_MUTED) {
|
||||
uiLayoutSetActive(layout, false);
|
||||
|
||||
Reference in New Issue
Block a user