diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-05 11:55:18 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-05 11:55:18 +0400 |
commit | b727202921f537b50ab5ebdf7367da1c4416120d (patch) | |
tree | 954ed4385ac89f5b4e281ef3b8f1a1ad53cc8227 /source/blender/editors/interface/interface_draw.c | |
parent | 3a6adc0ed30be1d940f8069ad5e35bb27140ada6 (diff) |
compile without splash and icons when WITH_HEADLESS is set.
Diffstat (limited to 'source/blender/editors/interface/interface_draw.c')
-rw-r--r-- | source/blender/editors/interface/interface_draw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_draw.c b/source/blender/editors/interface/interface_draw.c index f9c97c36bdd..710d4d58825 100644 --- a/source/blender/editors/interface/interface_draw.c +++ b/source/blender/editors/interface/interface_draw.c @@ -471,6 +471,9 @@ void uiEmboss(float x1, float y1, float x2, float y2, int sel) void ui_draw_but_IMAGE(ARegion *UNUSED(ar), uiBut *UNUSED(but), uiWidgetColors *UNUSED(wcol), rcti *rect) { +#ifdef WITH_HEADLESS + (void)rect; +#else extern char datatoc_splash_png[]; extern int datatoc_splash_png_size; ImBuf *ibuf; @@ -507,6 +510,7 @@ void ui_draw_but_IMAGE(ARegion *UNUSED(ar), uiBut *UNUSED(but), uiWidgetColors * */ IMB_freeImBuf(ibuf); +#endif } #if 0 |