Fix T64427: WITH_HEADLESS build option
This commit is contained in:
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)
|
@ -130,8 +130,7 @@ class GHOST_SystemNULL : public GHOST_System {
|
|||
state,
|
||||
parentWindow,
|
||||
type,
|
||||
((glSettings.flags & GHOST_glStereoVisual) != 0),
|
||||
1);
|
||||
((glSettings.flags & GHOST_glStereoVisual) != 0));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue