diff options
author | Andrea Weikert <elubie@gmx.net> | 2011-05-16 22:37:54 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2011-05-16 22:37:54 +0400 |
commit | 079caae727e56e2070f0d63aa030753f4ba1cbcd (patch) | |
tree | 199c09967469cad050d8cd9769a1d07055a51570 /source/blender/makesdna/DNA_ID.h | |
parent | 4023427fe0df2afad4f18d74cb790a5b9f2f51a3 (diff) |
code cleanup: icon creation
* changed stupid miplevel/MIPMAP naming in icon code, it was really the icon size (small icon or larger preview) that was meant there.
Diffstat (limited to 'source/blender/makesdna/DNA_ID.h')
-rw-r--r-- | source/blender/makesdna/DNA_ID.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index 267283ee47a..d8f254aa187 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -123,12 +123,14 @@ typedef struct Library { struct Library *parent; /* set for indirectly linked libs, used in the outliner and while reading */ } Library; -#define PREVIEW_MIPMAPS 2 -#define PREVIEW_MIPMAP_ZERO 0 -#define PREVIEW_MIPMAP_LARGE 1 +enum eIconSizes { + ICON_SIZE_ICON, + ICON_SIZE_PREVIEW, + NUM_ICON_SIZES +}; typedef struct PreviewImage { - /* All values of 2 are really PREVIEW_MIPMAPS */ + /* All values of 2 are really NUM_ICON_SIZES */ unsigned int w[2]; unsigned int h[2]; short changed[2]; |