From 6d6f1b0b4d32d3396be813cdba82830a9c95295a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Nov 2011 00:06:54 +0000 Subject: display quality for avijpeg, name BKE_imtype functions more sensibly --- source/blender/editors/space_image/image_buttons.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/editors/space_image/image_buttons.c') diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c index 54ee92a4413..892ab9daf25 100644 --- a/source/blender/editors/space_image/image_buttons.c +++ b/source/blender/editors/space_image/image_buttons.c @@ -821,7 +821,7 @@ void uiTemplateImageSettings(uiLayout *layout, PointerRNA *imfptr) { ImageFormatData *imf= imfptr->data; ID *id= imfptr->id.data; - const int depth_ok= BKE_imtype_is_depth_ok(imf->imtype); + const int depth_ok= BKE_imtype_valid_depths(imf->imtype); /* some settings depend on this being a scene thats rendered */ const short is_render_out= (id && GS(id->name) == ID_SCE); @@ -847,15 +847,15 @@ void uiTemplateImageSettings(uiLayout *layout, PointerRNA *imfptr) uiItemR(row, imfptr, "color_depth", UI_ITEM_R_EXPAND, NULL, ICON_NONE); } - if (BKE_imtype_is_quality_ok(imf->imtype)) { + if (BKE_imtype_supports_quality(imf->imtype)) { uiItemR(col, imfptr, "quality", 0, NULL, ICON_NONE); } - if (BKE_imtype_is_compression_ok(imf->imtype)) { + if (BKE_imtype_supports_compress(imf->imtype)) { uiItemR(col, imfptr, "compression", 0, NULL, ICON_NONE); } - if (BKE_imtype_is_zbuf_ok(imf->imtype)) { + if (BKE_imtype_supports_zbuf(imf->imtype)) { uiItemR(col, imfptr, "use_zbuffer", 0, NULL, ICON_NONE); } -- cgit v1.2.3