新手上路
- 积分
- 28
- 金钱
- 28
- 注册时间
- 2017-5-18
- 在线时间
- 20 小时
|
发表于 2020-5-18 14:43:39
|
显示全部楼层
我是通过下面这个方法解决的,打开移植文件GUI.h 找到GUI_DEVICE_API把结构体里面的替换成- struct GUI_DEVICE_API {
- //
- // Data
- //
- int DeviceClassIndex;
- //
- // Drawing functions
- //
- void (* pfDrawBitmap )(GUI_DEVICE * pDevice, int x0, int y0, int xsize, int ysize, int BitsPerPixel, int BytesPerLine, const U8 * pData, int Diff, const LCD_PIXELINDEX * pTrans);
- void (* pfDrawHLine )(GUI_DEVICE * pDevice, int x0, int y0, int x1);
- void (* pfDrawVLine )(GUI_DEVICE * pDevice, int x , int y0, int y1);
- void (* pfFillRect )(GUI_DEVICE * pDevice, int x0, int y0, int x1, int y1);
- unsigned (* pfGetPixelIndex)(GUI_DEVICE * pDevice, int x, int y);
- void (* pfSetPixelIndex)(GUI_DEVICE * pDevice, int x, int y, int ColorIndex);
- void (* pfXorPixel )(GUI_DEVICE * pDevice, int x, int y);
- //
- // Set origin
- //
- void (* pfSetOrg )(GUI_DEVICE * pDevice, int x, int y);
- //
- // Request information
- //
- void (*(* pfGetDevFunc) (GUI_DEVICE ** ppDevice, int Index))(void);
- I32 (* pfGetDevProp )(GUI_DEVICE * pDevice, int Index);
- void *(* pfGetDevData )(GUI_DEVICE * pDevice, int Index);
- void (* pfGetRect )(GUI_DEVICE * pDevice, LCD_RECT * pRect);
- };
复制代码 |
|