fixed orientation stuff in widgets demo

ugfx_release_2.6
Joel Bodenmann 2013-10-26 17:52:49 +02:00
parent 41e43cfcd6
commit 98e7a40205
1 changed files with 4 additions and 4 deletions

View File

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