Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-11-07 05:32:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-11-07 05:32:15 +0400
commitcdce3e09493c8bf4395de163342760409aad1407 (patch)
tree017af9ef854e58f7bd62a69d7c3cf79925deb244 /source/blender/editors/space_node/node_draw.c
parent852a41fb0e314b70c2594150f7b0eb01daad1718 (diff)
code cleanup:
- remove double promotions - use UI_DPI_ICON_FAC macro rather then dpi/72 - add assert to prevent creating jobs with WM_JOB_TYPE_ANY, which should only be used for finding jobs.
Diffstat (limited to 'source/blender/editors/space_node/node_draw.c')
-rw-r--r--source/blender/editors/space_node/node_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/node_draw.c b/source/blender/editors/space_node/node_draw.c
index 1d3b21fe2d6..72461cfb2a8 100644
--- a/source/blender/editors/space_node/node_draw.c
+++ b/source/blender/editors/space_node/node_draw.c
@@ -843,7 +843,7 @@ static void node_draw_hidden(const bContext *C, ARegion *ar, SpaceNode *snode, b
rctf *rct = &node->totr;
float dx, centy = BLI_rctf_cent_y(rct);
float hiddenrad = BLI_rctf_size_y(rct) / 2.0f;
- float socket_size = NODE_SOCKSIZE * U.dpi / 72;
+ float socket_size = NODE_SOCKSIZE * UI_DPI_ICON_FAC;
int color_id = node_get_colorid(node);
char showname[128]; /* 128 is used below */