Fix T64427: WITH_HEADLESS build option

This commit is contained in:
Campbell Barton 2019-05-13 17:41:14 +10:00
parent e61531cb0e
commit 422be98c47
Notes: blender-bot 2023-02-14 08:45:09 +01:00
Referenced by issue #64427, Build broken for python module on master: make bpy (on linux and mac os)
2 changed files with 3 additions and 2 deletions

View File

@ -130,8 +130,7 @@ class GHOST_SystemNULL : public GHOST_System {
state,
parentWindow,
type,
((glSettings.flags & GHOST_glStereoVisual) != 0),
1);
((glSettings.flags & GHOST_glStereoVisual) != 0));
}
};

View File

@ -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,