aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gwin/button/main.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2018-07-08 13:51:20 +1000
committerinmarket <andrewh@inmarket.com.au>2018-07-08 13:51:20 +1000
commite61f0ae4248bdafeace54c330d488904a495c045 (patch)
tree448c5f4e99ae94fd41a99b3082b35208b2ba7c5f /demos/modules/gwin/button/main.c
parentd9258efd4dac2b7939bb11707cbbdfa135c02bf5 (diff)
downloaduGFX-e61f0ae4248bdafeace54c330d488904a495c045.tar.gz
uGFX-e61f0ae4248bdafeace54c330d488904a495c045.tar.bz2
uGFX-e61f0ae4248bdafeace54c330d488904a495c045.zip
Added type gOrientation to replace V2.x orientation_t, and values gOrientationX replace GDISP_ROTATE_X
Diffstat (limited to 'demos/modules/gwin/button/main.c')
-rw-r--r--demos/modules/gwin/button/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/modules/gwin/button/main.c b/demos/modules/gwin/button/main.c
index 6e766e74..ab70d1a0 100644
--- a/demos/modules/gwin/button/main.c
+++ b/demos/modules/gwin/button/main.c
@@ -52,13 +52,13 @@ static void createWidgets(void) {
int main(void) {
GEvent* pe;
- static const orientation_t orients[] = { GDISP_ROTATE_0, GDISP_ROTATE_90, GDISP_ROTATE_180, GDISP_ROTATE_270 };
+ static const gOrientation orients[] = { gOrientation0, gOrientation90, gOrientation180, gOrientation270 };
unsigned which;
// Initialize the display
gfxInit();
- // We are currently at GDISP_ROTATE_0
+ // We are currently at gOrientation0
which = 0;
gdispSetOrientation(orients[which]);