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>2019-05-13 10:41:14 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-13 10:42:21 +0300
commit422be98c47bb2010722e6d9503ec38d6a87bc55a (patch)
tree532a471c46d10c26fbe4474ea0ebf425e5bd5195 /source/blender/editors/interface/interface_icons.c
parente61531cb0eae60203c10a21426b85ba1ad438d95 (diff)
Fix T64427: WITH_HEADLESS build option
Diffstat (limited to 'source/blender/editors/interface/interface_icons.c')
-rw-r--r--source/blender/editors/interface/interface_icons.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_icons.c b/source/blender/editors/interface/interface_icons.c
index 6bdbd3c4f1c..09b1f48fd0a 100644
--- a/source/blender/editors/interface/interface_icons.c
+++ b/source/blender/editors/interface/interface_icons.c
@@ -1869,11 +1869,13 @@ static void icon_draw_size(float x,
float border_outset = 0.0;
unsigned int border_texel = 0;
+#ifndef WITH_HEADLESS
if (with_border) {
const float scale = (float)ICON_GRID_W / (float)ICON_DEFAULT_WIDTH;
border_texel = ICON_MONO_BORDER_OUTSET;
border_outset = ICON_MONO_BORDER_OUTSET / (scale * aspect);
}
+#endif
icon_draw_texture(x - border_outset,
y - border_outset,
(float)w + 2 * border_outset,