* BUG: Fix Align.IsBottom() and Align.IsMiddle().

[GB.QT4]
* BUG: Fix Align.IsBottom() and Align.IsMiddle().



git-svn-id: svn://localhost/gambas/trunk@6210 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2014-03-29 19:46:52 +00:00
parent 78440de68d
commit 98203894df

View File

@ -43,9 +43,9 @@ enum
ALIGN_JUSTIFY = 0x04, //Qt::AlignVCenter + Qt::AlignJustify
};
#define ALIGN_IS_TOP(_align) (((_align) & 0xF0) == 0x1)
#define ALIGN_IS_BOTTOM(_align) (((_align) & 0xF0) == 0x2)
#define ALIGN_IS_MIDDLE(_align) (((_align) & 0xF0) == 0x0)
#define ALIGN_IS_TOP(_align) (((_align) & 0xF0) == 0x10)
#define ALIGN_IS_BOTTOM(_align) (((_align) & 0xF0) == 0x20)
#define ALIGN_IS_MIDDLE(_align) (((_align) & 0xF0) == 0x00)
#define ALIGN_IS_LEFT(_align) (((_align) & 0xF) == 0x1 || (((_align) & 0xF) == 0x0 && !GB.System.IsRightToLeft()))
#define ALIGN_IS_RIGHT(_align) (((_align) & 0xF) == 0x2 || (((_align) & 0xF) == 0x0 && GB.System.IsRightToLeft()))
#define ALIGN_IS_CENTER(_align) (((_align) & 0xF) == 0x3)