minor changes, dont append with cmake platform flags which is a string and use enum values rather then ints in a few places.
This commit is contained in:
@@ -2467,7 +2467,7 @@ static uiBut *ui_def_but(uiBlock *block, int type, int retval, const char *str,
|
||||
but->pointype= type & BUTPOIN;
|
||||
but->bit= type & BIT;
|
||||
but->bitnr= type & 31;
|
||||
but->icon = 0;
|
||||
but->icon = ICON_NONE;
|
||||
but->iconadd=0;
|
||||
|
||||
but->retval= retval;
|
||||
|
||||
@@ -1018,9 +1018,9 @@ static void ui_id_icon_render(bContext *C, ID *id, int big)
|
||||
{
|
||||
/* create the rect if necessary */
|
||||
|
||||
icon_set_image(C, id, pi, 0); /* icon size */
|
||||
icon_set_image(C, id, pi, ICON_SIZE_ICON); /* icon size */
|
||||
if (big)
|
||||
icon_set_image(C, id, pi, 1); /* bigger preview size */
|
||||
icon_set_image(C, id, pi, ICON_SIZE_PREVIEW); /* bigger preview size */
|
||||
|
||||
pi->changed[0] = 0;
|
||||
}
|
||||
@@ -1030,7 +1030,7 @@ static void ui_id_icon_render(bContext *C, ID *id, int big)
|
||||
static void ui_id_brush_render(bContext *C, ID *id)
|
||||
{
|
||||
PreviewImage *pi = BKE_previewimg_get(id);
|
||||
int i;
|
||||
enum eIconSizes i;
|
||||
|
||||
if(!pi)
|
||||
return;
|
||||
|
||||
@@ -125,7 +125,7 @@ typedef struct Library {
|
||||
|
||||
enum eIconSizes {
|
||||
ICON_SIZE_ICON,
|
||||
ICON_SIZE_PREVIEW,
|
||||
ICON_SIZE_PREVIEW
|
||||
};
|
||||
#define NUM_ICON_SIZES (ICON_SIZE_PREVIEW + 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user