From 98e7a40205fd045898e6ca8f7b57199d9eb4a002 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 26 Oct 2013 17:52:49 +0200 Subject: [PATCH] fixed orientation stuff in widgets demo --- demos/modules/gwin/widgets/main.c | 8 ++++---- 1 file 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();