diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-13 10:41:14 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-13 10:42:21 +0300 |
commit | 422be98c47bb2010722e6d9503ec38d6a87bc55a (patch) | |
tree | 532a471c46d10c26fbe4474ea0ebf425e5bd5195 | |
parent | e61531cb0eae60203c10a21426b85ba1ad438d95 (diff) |
Fix T64427: WITH_HEADLESS build option
-rw-r--r-- | intern/ghost/intern/GHOST_SystemNULL.h | 3 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_icons.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/intern/ghost/intern/GHOST_SystemNULL.h b/intern/ghost/intern/GHOST_SystemNULL.h index 7f68c801a70..2a07633dc51 100644 --- a/intern/ghost/intern/GHOST_SystemNULL.h +++ b/intern/ghost/intern/GHOST_SystemNULL.h @@ -130,8 +130,7 @@ class GHOST_SystemNULL : public GHOST_System { state, parentWindow, type, - ((glSettings.flags & GHOST_glStereoVisual) != 0), - 1); + ((glSettings.flags & GHOST_glStereoVisual) != 0)); } }; 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, |