Hi, I have emWin 5.22 Version my Existing UI works fine without Memdev, but after enabling Memdev, even if I don't use any of MEMDEV functionality, my existing Functionalities start Breaking, some Windows (WM) are not completely drawn etc...
I Have to repaint every time to get the changes on the Screen...
This following code is from segger samples source code MEMDEV_Banding.c. Please consider line no. 16 and 17, how can I avoid these lines..
Display All
Also tried using GUI_Exec(), but didnt get the Desired output..
I Wanted to know what all changes need to be taken care of, if MEMDEV is enabled. What modification i need to do so that my existing functionalities do not break.....
Thank you..
I Have to repaint every time to get the changes on the Screen...
This following code is from segger samples source code MEMDEV_Banding.c. Please consider line no. 16 and 17, how can I avoid these lines..
C Source Code
- #define USE_BANDING_MEMDEV (1) /* Set to 0 for drawing without banding memory device */
- ......
- .....
- .....
- static void _DemoBandingMemdev(void)
- {
- .....................
- GUI_RotatePolygon(DrawItContext.aPointsDest, aPoints,
- SIZE_OF_ARRAY(aPoints), angle);
- #if USE_BANDING_MEMDEV
- {
- GUI_RECT Rect = {50, 70, 350, 270};
- /* Use banding memory device for drawing */
- GUI_MEMDEV_Draw(&Rect, &_DrawIt, &DrawItContext, 0, 0);
- WM_InvalidateRect(WM_HBKWIN, &Rect); // Always have to add this Line to see the Changes reflect on my Screen
- GUI_Delay(1000);
- }
- #else
- /* Simple drawing without using memory devices */
- _DrawIt((void *) &DrawItContext);
- #endif
- }
- }
- }
- void banding(myWgdtHnd_t hHndl)
- {
- myViewHandle hViewhndl;
- hViewhndl = (myViewHandle) hHndl;
- if(NULL != hViewhndl)
- {
- GUI_MEMDEV_Select(hViewhndl->hmem);
- GUI_SetBkColor(GUI_GREEN);
- _DemoBandingMemdev();
- GUI_MEMDEV_Select(0);
- //GUI_MEMDEV_CopyToLCD(hViewhndl->hmem);
- }
- }
Also tried using GUI_Exec(), but didnt get the Desired output..
I Wanted to know what all changes need to be taken care of, if MEMDEV is enabled. What modification i need to do so that my existing functionalities do not break.....
Thank you..
The post was edited 2 times, last by sandeep ().