aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gwin
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2013-10-26 17:52:49 +0200
committerJoel Bodenmann <joel@unormal.org>2013-10-26 17:58:25 +0200
commit2832f97fed4cf413a078995e6ca2068e13aabc1d (patch)
tree2d4a10a3324d4b5d5abe69171a449d5048fd582e /demos/modules/gwin
parent45eb9b0c79c0a2aee7f202b7adb8d0b932d47cbc (diff)
downloaduGFX-2832f97fed4cf413a078995e6ca2068e13aabc1d.tar.gz
uGFX-2832f97fed4cf413a078995e6ca2068e13aabc1d.tar.bz2
uGFX-2832f97fed4cf413a078995e6ca2068e13aabc1d.zip
fixed orientation stuff in widgets demo
Diffstat (limited to 'demos/modules/gwin')
-rw-r--r--demos/modules/gwin/widgets/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/modules/gwin/widgets/main.c b/demos/modules/gwin/widgets/main.c
index 0dec7275..dde955f3 100644
--- a/demos/modules/gwin/widgets/main.c
+++ b/demos/modules/gwin/widgets/main.c
@@ -262,10 +262,6 @@ int main(void) {
// Initialize the display
gfxInit();
- #if GDISP_NEED_CONTROL
- gdispSetOrientation(GDISP_ROTATE_90);
- #endif
-
// Set the widget defaults
gwinSetDefaultFont(gdispOpenFont("*"));
gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
@@ -276,6 +272,10 @@ int main(void) {
gwinAttachMouse(0);
#endif
+ #if GDISP_NEED_CONTROL
+ gdispSetOrientation(GDISP_ROTATE_90);
+ #endif
+
// Create the gwin windows/widgets
createWidgets();