Change struct alignment for structs which are intended to be aligned but aren't.

remove uiIconImage too since its unused.
This commit is contained in:
Campbell Barton 2011-10-03 01:36:25 +00:00
parent f87ab2e907
commit b001eeb10d
3 changed files with 22 additions and 29 deletions

@ -136,19 +136,10 @@ typedef enum {
/* for scope resize zone */
#define SCOPE_RESIZE_PAD 9
typedef struct {
short xim, yim;
unsigned int *rect;
short xofs, yofs;
} uiIconImage;
typedef struct uiLinkLine { /* only for draw/edit */
struct uiLinkLine *next, *prev;
short flag, pad;
struct uiBut *from, *to;
short flag, pad;
} uiLinkLine;
typedef struct {
@ -164,9 +155,9 @@ typedef struct {
struct uiBut {
struct uiBut *next, *prev;
short type, pointype, bit, bitnr, retval, strwidth, ofs, pos, selsta, selend;
short alignnr;
int flag;
short type, pointype, bit, bitnr, retval, strwidth, ofs, pos, selsta, selend, alignnr;
short pad1;
char *str;
char strdata[UI_MAX_NAME_STR];
@ -282,7 +273,7 @@ struct uiBlock {
float minx, miny, maxx, maxy;
float aspect;
short alignnr;
int puphash; // popup menu hash for memory
uiButHandleFunc func;
void *func_arg1;
@ -306,10 +297,12 @@ struct uiBlock {
void *drawextra_arg2;
int flag;
short alignnr;
char direction;
char dt; /* drawtype: UI_EMBOSS, UI_EMBOSSN ... etc, copied to buttons */
char pad;
char auto_open;
char _pad[7];
double auto_open_last;
const char *lockstr;
@ -328,14 +321,11 @@ struct uiBlock {
uiPopupBlockHandle *handle; // handle
int puphash; // popup menu hash for memory
void *evil_C; // XXX hack for dynamic operator enums
struct UnitSettings *unit; // unit system, used a lot for numeric buttons so include here rather then fetching through the scene every time.
float _hsv[3]; // XXX, only access via ui_block_hsv_get()
char color_profile; // color profile for correcting linear colors for display
struct UnitSettings *unit; // unit system, used a lot for numeric buttons so include here rather then fetching through the scene every time.
};
typedef struct uiSafetyRct {
@ -401,9 +391,9 @@ struct uiPopupBlockHandle {
/* for operator popups */
struct wmOperatorType *optype;
int opcontext;
ScrArea *ctx_area;
ARegion *ctx_region;
int opcontext;
/* return values */
int butretval;

@ -230,8 +230,8 @@ typedef struct CollectionPropertyIterator {
int level;
/* external */
int valid;
PointerRNA ptr;
int valid;
} CollectionPropertyIterator;
typedef struct CollectionPointerLink {
@ -274,13 +274,13 @@ typedef struct ParameterList {
/* storage for parameters */
void *data;
/* function passed at creation time */
struct FunctionRNA *func;
/* store the parameter size */
int alloc_size;
int arg_count, ret_count;
/* function passed at creation time */
struct FunctionRNA *func;
} ParameterList;
typedef struct ParameterIterator {

@ -464,8 +464,6 @@ typedef struct wmOperatorType {
/* struct wmOperatorTypeMacro */
ListBase macro;
short flag;
/* pointer to modal keymap, do not free! */
struct wmKeyMap *modalkeymap;
@ -476,6 +474,10 @@ typedef struct wmOperatorType {
/* RNA integration */
ExtensionRNA ext;
/* Flag last for padding */
short flag;
} wmOperatorType;
/* **************** Paint Cursor ******************* */
@ -540,11 +542,12 @@ typedef struct wmDropBox {
/* if poll survives, operator is called */
wmOperatorType *ot; /* not saved in file, so can be pointer */
short opcontext; /* default invoke */
struct IDProperty *properties; /* operator properties, assigned to ptr->data and can be written to a file */
struct IDProperty *properties; /* operator properties, assigned to ptr->data and can be written to a file */
struct PointerRNA *ptr; /* rna pointer to access properties */
short opcontext; /* default invoke */
} wmDropBox;
/* *************** migrated stuff, clean later? ************** */