Cleanup: remove unused UI_SHIFT_FLIPPED (2.4x toolbox)
This commit is contained in:
@@ -111,7 +111,6 @@ typedef struct uiLayout uiLayout;
|
||||
#define UI_LEFT (1 << 2)
|
||||
#define UI_RIGHT (1 << 3)
|
||||
#define UI_CENTER (1 << 4)
|
||||
#define UI_SHIFT_FLIPPED (1 << 5)
|
||||
|
||||
#if 0
|
||||
/* uiBlock->autofill (not yet used) */
|
||||
|
@@ -1377,7 +1377,7 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
|
||||
/* aspect /= (float)xsize;*/ /*UNUSED*/
|
||||
|
||||
{
|
||||
int left = 0, right = 0, top = 0, down = 0;
|
||||
bool left = 0, right = 0, top = 0, down = 0;
|
||||
int winx, winy;
|
||||
// int offscreen;
|
||||
|
||||
@@ -1444,8 +1444,6 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
|
||||
else xof = butrct.xmin - block->rect.xmin;
|
||||
/* changed direction? */
|
||||
if ((dir1 & block->direction) == 0) {
|
||||
if (block->direction & UI_SHIFT_FLIPPED)
|
||||
xof += dir2 == UI_LEFT ? 25 : -25;
|
||||
uiBlockFlipOrder(block);
|
||||
}
|
||||
}
|
||||
@@ -1455,8 +1453,6 @@ static void ui_block_position(wmWindow *window, ARegion *butregion, uiBut *but,
|
||||
else xof = butrct.xmin - block->rect.xmin;
|
||||
/* changed direction? */
|
||||
if ((dir1 & block->direction) == 0) {
|
||||
if (block->direction & UI_SHIFT_FLIPPED)
|
||||
xof += dir2 == UI_LEFT ? 25 : -25;
|
||||
uiBlockFlipOrder(block);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user