use rctf struct for UI buttons and blocks, easier to read and means we can use BLI_rctf functions.
This commit is contained in:
@@ -158,7 +158,7 @@ struct uiBut {
|
||||
char strdata[UI_MAX_NAME_STR];
|
||||
char drawstr[UI_MAX_DRAW_STR];
|
||||
|
||||
float x1, y1, x2, y2;
|
||||
rctf rect;
|
||||
|
||||
char *poin;
|
||||
float hardmin, hardmax, softmin, softmax;
|
||||
@@ -264,8 +264,8 @@ struct uiBlock {
|
||||
char name[UI_MAX_NAME_STR];
|
||||
|
||||
float winmat[4][4];
|
||||
|
||||
float minx, miny, maxx, maxy;
|
||||
|
||||
rctf rect;
|
||||
float aspect;
|
||||
|
||||
int puphash; /* popup menu hash for memory */
|
||||
|
||||
Reference in New Issue
Block a user