fixed orientation stuff in widgets demo

This commit is contained in:
Joel Bodenmann 2013-10-26 17:52:49 +02:00
parent 45eb9b0c79
commit 2832f97fed

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