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();