Hello,
I'd like to use the functions GUI_MEMDEV_MoveInWindow() and GUI_MEMDEV_MoveOutWindow() in my application but, since I'm using also at the beginning GUI_SetOrientation(GUI_SWAP_XY | GUI_MIRROR_X) to change the orientation from "landscape" to "portrait" (the display is natively landscape but my application is portrait), it looks like GUI_MEMDEV_MoveOutWindow() works only with the physical orientation of the display.
Using MoveOutWindow in this way leads to a Hard fault:
WM_HideWindow(pMsg->hWin);
WM_ShowWindow(_hWin0);
GUI_MEMDEV_MoveOutWindow(pMsg->hWin, 0, 320, 0, 200);
If I do a rotation before using the MoveOutWindow function as :
WM_HideWindow(pMsg->hWin);
WM_ShowWindow(_hWin0);
GUI_SetOrientationEx(GUI_ROTATION_0, 0);
GUI_MEMDEV_MoveOutWindow(pMsg->hWin, 0, 320, 0, 200);
GUI_SetOrientationEx(GUI_SWAP_XY | GUI_MIRROR_X, 0);
The function is executed but the window is of course rotated as depicted.
Is there anything I'm missing in the code or any workaround to use both move window and a swapped orientated display?
Thank you.
Mark
I'd like to use the functions GUI_MEMDEV_MoveInWindow() and GUI_MEMDEV_MoveOutWindow() in my application but, since I'm using also at the beginning GUI_SetOrientation(GUI_SWAP_XY | GUI_MIRROR_X) to change the orientation from "landscape" to "portrait" (the display is natively landscape but my application is portrait), it looks like GUI_MEMDEV_MoveOutWindow() works only with the physical orientation of the display.
Using MoveOutWindow in this way leads to a Hard fault:
WM_HideWindow(pMsg->hWin);
WM_ShowWindow(_hWin0);
GUI_MEMDEV_MoveOutWindow(pMsg->hWin, 0, 320, 0, 200);
If I do a rotation before using the MoveOutWindow function as :
WM_HideWindow(pMsg->hWin);
WM_ShowWindow(_hWin0);
GUI_SetOrientationEx(GUI_ROTATION_0, 0);
GUI_MEMDEV_MoveOutWindow(pMsg->hWin, 0, 320, 0, 200);
GUI_SetOrientationEx(GUI_SWAP_XY | GUI_MIRROR_X, 0);
The function is executed but the window is of course rotated as depicted.
Is there anything I'm missing in the code or any workaround to use both move window and a swapped orientated display?
Thank you.
Mark