Fix WITH_HEADLESS build.
This commit is contained in:
parent
72cbf966fb
commit
b3b4b9fb8c
|
@ -53,6 +53,8 @@ public:
|
|||
void getMainDisplayDimensions(GHOST_TUns32& width, GHOST_TUns32& height) const { /* nop */ }
|
||||
void getAllDisplayDimensions(GHOST_TUns32& width, GHOST_TUns32& height) const { /* nop */ }
|
||||
bool supportsNativeDialogs(void) { return false;}
|
||||
GHOST_IContext *createOffscreenContext() { return NULL; }
|
||||
GHOST_TSuccess disposeContext(GHOST_IContext *context) { return GHOST_kFailure; }
|
||||
|
||||
GHOST_TSuccess init() {
|
||||
GHOST_TSuccess success = GHOST_System::init();
|
||||
|
|
|
@ -4569,7 +4569,11 @@ bool WM_window_modal_keymap_status_draw(
|
|||
continue;
|
||||
}
|
||||
int icon_mod[4];
|
||||
#ifdef WITH_HEADLESS
|
||||
int icon = 0;
|
||||
#else
|
||||
int icon = UI_icon_from_keymap_item(kmi, icon_mod);
|
||||
#endif
|
||||
if (icon != 0) {
|
||||
for (int j = 0; j < ARRAY_SIZE(icon_mod) && icon_mod[j]; j++) {
|
||||
uiItemL(row, "", icon_mod[j]);
|
||||
|
|
Loading…
Reference in New Issue