diff options
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r-- | source/blender/editors/space_node/node_draw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c index fc4685929d3..bafd1b9a388 100644 --- a/source/blender/editors/space_node/node_draw.c +++ b/source/blender/editors/space_node/node_draw.c @@ -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, @@ -1713,7 +1713,7 @@ static void draw_group_overlay(const bContext *C, ARegion *region) UI_block_end(C, block); } -void drawnodespace(const bContext *C, ARegion *region) +void node_draw_space(const bContext *C, ARegion *region) { wmWindow *win = CTX_wm_window(C); SpaceNode *snode = CTX_wm_space_node(C); @@ -1803,7 +1803,7 @@ void drawnodespace(const bContext *C, ARegion *region) /* grid, uses theme color based on node path depth */ UI_view2d_multi_grid_draw(v2d, - (depth > 0 ? TH_NODE_GROUP : TH_BACK), + (depth > 0 ? TH_NODE_GROUP : TH_GRID), ED_node_grid_size(), NODE_GRID_STEPS, grid_levels); @@ -1847,7 +1847,7 @@ void drawnodespace(const bContext *C, ARegion *region) } else { /* default grid */ - UI_view2d_multi_grid_draw(v2d, TH_BACK, ED_node_grid_size(), NODE_GRID_STEPS, grid_levels); + UI_view2d_multi_grid_draw(v2d, TH_GRID, ED_node_grid_size(), NODE_GRID_STEPS, grid_levels); /* backdrop */ draw_nodespace_back_pix(C, region, snode, NODE_INSTANCE_KEY_NONE); |