Cleanup: quiet warnings with headless builds
This commit is contained in:
@@ -229,7 +229,7 @@ static ImBuf *wm_block_splash_banner_image(int *r_width,
|
||||
IMB_premultiply_alpha(ibuf);
|
||||
|
||||
#else
|
||||
UNUSED_VARS(width);
|
||||
UNUSED_VARS(max_height);
|
||||
#endif
|
||||
*r_height = height;
|
||||
*r_width = width;
|
||||
@@ -434,7 +434,6 @@ void WM_OT_splash(wmOperatorType *ot)
|
||||
|
||||
static uiBlock *wm_block_about_create(bContext *C, ARegion *region, void * /*arg*/)
|
||||
{
|
||||
constexpr bool show_color = false;
|
||||
const uiStyle *style = UI_style_get_dpi();
|
||||
const int dialog_width = style->widget.points * 42 * UI_SCALE_FAC;
|
||||
|
||||
@@ -448,8 +447,8 @@ static uiBlock *wm_block_about_create(bContext *C, ARegion *region, void * /*arg
|
||||
|
||||
/* Blender logo. */
|
||||
#ifndef WITH_HEADLESS
|
||||
|
||||
float size = 0.2f * dialog_width;
|
||||
constexpr bool show_color = false;
|
||||
const float size = 0.2f * dialog_width;
|
||||
|
||||
ImBuf *ibuf = UI_svg_icon_bitmap(ICON_BLENDER_LOGO_LARGE, size, show_color);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user