有哪位大侠之前用过UCGUI(3.98版)中GUI_MEMDEV_CopyFromLCD函数,使用它后,区域显示是黑色。 源码如下: GUI_MEMDEV_Handle Key_hMem; Key_hMem = GUI_MEMDEV_Create(0,0,20,20); //建立存储设备 GUI_MEMDEV_Select(Key_hMem); GUI_SetFont(&GUI_Font16B_ASCII); GUI_SetBkColor(GUI_RED); GUI_Clear(); GUI_SetColor(GUI_WHITE); GUI_SetTextMode(GUI_TEXTMODE_NORMAL); GUI_DispString("Text"); GUI_MEMDEV_CopyFromLCD(Key_hMem); GUI_MEMDEV_CopyToLCD(Key_hMem); GUI_MEMDEV_Delete(Key_hMem); GUI_MEMDEV_Select(0); 配置: #define GUI_ALLOC_SIZE (3 * 1024*1024) /* Size of dynamic memory ... For WM and memory devices*/ #define GUI_WINSUPPORT 1 /* Window manager package available */ #define GUI_SUPPORT_MEMDEV 1 /* Memory devices available */ #define GUI_SUPPORT_AA 1 /* Anti aliasing available */ |