Browse Source

Tidy up flags for custom redraw routines

inmarket 4 years ago
parent
commit
ecc7f94c88

+ 1 - 1
src/gwin/gwin_button.h

@@ -44,7 +44,7 @@ typedef GEventGWin		GEventGWinButton;
44 44
  * @note	Used only for writing a custom draw routine.
45 45
  * @{
46 46
  */
47
-#define GBUTTON_FLG_PRESSED		(0x00000001<<0)
47
+#define GBUTTON_FLG_PRESSED		0x01
48 48
 /** @} */
49 49
 
50 50
 /**

+ 1 - 1
src/gwin/gwin_checkbox.h

@@ -50,7 +50,7 @@ typedef struct GEventGWinCheckbox {
50 50
  * @note	Used only for writing a custom draw routine.
51 51
  * @{
52 52
  */
53
-#define GCHECKBOX_FLG_CHECKED		(0x00000001<<0)
53
+#define GCHECKBOX_FLG_CHECKED		0x01
54 54
 /** @} */
55 55
 
56 56
 /* A Checkbox window */

+ 2 - 2
src/gwin/gwin_keyboard.h

@@ -44,8 +44,8 @@ typedef GEventGWin		GEventGWinKeyboard;
44 44
  * @note	Used only for writing a custom draw routine.
45 45
  * @{
46 46
  */
47
-#define GKEYBOARD_FLG_REVERTSET		(0x00000001<<0)
48
-#define GKEYBOARD_FLG_QUICKUPDATE	(0x00000001<<1)
47
+#define GKEYBOARD_FLG_REVERTSET		0x01
48
+#define GKEYBOARD_FLG_QUICKUPDATE	0x02
49 49
 #define GKEY_BAD_ROWCOL				255
50 50
 /** @} */
51 51
 

+ 3 - 3
src/gwin/gwin_label.h

@@ -38,9 +38,9 @@
38 38
  * @note	Used only for writing a custom draw routine.
39 39
  * @{
40 40
  */
41
-#define GLABEL_FLG_WAUTO		(0x00000001 << 0)
42
-#define GLABEL_FLG_HAUTO		(0x00000001 << 1)
43
-#define GLABEL_FLG_BORDER		(0x00000001 << 2)
41
+#define GLABEL_FLG_WAUTO		0x01
42
+#define GLABEL_FLG_HAUTO		0x02
43
+#define GLABEL_FLG_BORDER		0x04
44 44
 /** @} */
45 45
 
46 46
 // An label window

+ 5 - 5
src/gwin/gwin_list.h

@@ -81,11 +81,11 @@ typedef enum scroll_t { scrollAlways, scrollAuto, scrollSmooth } scroll_t;
81 81
  * @note	Used only for writing a custom draw routine.
82 82
  * @{
83 83
  */
84
-#define GLIST_FLG_MULTISELECT		(0x00000001 << 0)
85
-#define GLIST_FLG_HASIMAGES			(0x00000001 << 1)
86
-#define GLIST_FLG_SCROLLALWAYS		(0x00000001 << 2)
87
-#define GLIST_FLG_SCROLLSMOOTH      (0x00000001 << 3)
88
-#define GLIST_FLG_ENABLERENDER      (0x00000001 << 4)
84
+#define GLIST_FLG_MULTISELECT		0x01
85
+#define GLIST_FLG_HASIMAGES			0x02
86
+#define GLIST_FLG_SCROLLALWAYS		0x04
87
+#define GLIST_FLG_SCROLLSMOOTH      0x08
88
+#define GLIST_FLG_ENABLERENDER      0x10
89 89
 /** @} */
90 90
 
91 91
 /**

+ 1 - 1
src/gwin/gwin_radio.h

@@ -50,7 +50,7 @@ typedef struct GEventGWinRadio {
50 50
  * @note	Used only for writing a custom draw routine.
51 51
  * @{
52 52
  */
53
-#define GRADIO_FLG_PRESSED		(0x00000001<<0)
53
+#define GRADIO_FLG_PRESSED		0x01
54 54
 /** @} */
55 55
 
56 56
 /**

+ 1 - 1
src/gwin/gwin_slider.h

@@ -50,7 +50,7 @@ typedef struct GEventGWinSlider {
50 50
  * @note	Used only for writing a custom draw routine.
51 51
  * @{
52 52
  */
53
-#define GSLIDER_FLG_EXTENDED_EVENTS		(0x00000001<<0)
53
+#define GSLIDER_FLG_EXTENDED_EVENTS		0x01
54 54
 /** @} */
55 55
 
56 56
 // A slider window