Hello,
I have developed a GUI with STemWin libraries for a 4.3" display.
Now I need to rotate all the application upside down so in my code I called the function GUI_SetOrientationEx in the following way:
Display All
Compared to the plain GUI without those rotations the interface is really slow (approximately 3x slower) when redrawing and changing page.
Is this the normal consequence of using this kind of functions (GUI_SetOrientationEx) and what can be done to improve the redrawing?
Is there something else I can do or another way to have the same result of turning my application upside down using other functions and improving performances?
Thank you!
Mark
I have developed a GUI with STemWin libraries for a 4.3" display.
Now I need to rotate all the application upside down so in my code I called the function GUI_SetOrientationEx in the following way:
Source Code
- GUI_Init();
- // Enable the automatic use of Multiple Buffering with Windows Manager (WM)
- WM_MULTIBUF_Enable(1);
- if (GUI_SetOrientationEx(GUI_MIRROR_Y | GUI_MIRROR_X, 0) == 1)
- printf("Hor Flip layer 0 failed\n");
- if (GUI_SetOrientationEx(GUI_MIRROR_Y | GUI_MIRROR_X, 1) == 1)
- printf("Hor Flip layer 1 failed\n");
- ...
Is this the normal consequence of using this kind of functions (GUI_SetOrientationEx) and what can be done to improve the redrawing?
Is there something else I can do or another way to have the same result of turning my application upside down using other functions and improving performances?
Thank you!
Mark