Compare commits

...

3 Commits

Author SHA1 Message Date
wujingchao000
e90744e59d
Pre Merge pull request !11 from wujingchao000/N/A 2024-12-19 09:33:29 +00:00
Polarix
d6922f3b29
!12 修复了一处错误的设备接口指针检查
Merge pull request !12 from PermissionDenied7335/Stable
2024-12-19 09:33:29 +00:00
PermissionDenied7335
4d79a90036
修复了像素读取中一处错误的设备接口指针检查
Signed-off-by: PermissionDenied7335 <grade6_wty@163.com>
2024-12-11 11:20:32 +00:00

View File

@ -73,7 +73,7 @@ SGUI_COLOR SGUI_Basic_GetPoint(SGUI_SCR_DEV* pstDeviceIF, SGUI_INT iPosX, SGUI_I
/*----------------------------------*/ /*----------------------------------*/
if((NULL != pstDeviceIF) && (iPosX < SGUI_RECT_WIDTH(pstDeviceIF->stSize)) && (iPosY < SGUI_RECT_HEIGHT(pstDeviceIF->stSize))) if((NULL != pstDeviceIF) && (iPosX < SGUI_RECT_WIDTH(pstDeviceIF->stSize)) && (iPosY < SGUI_RECT_HEIGHT(pstDeviceIF->stSize)))
{ {
if(NULL == pstDeviceIF->fnSetPixel) if(NULL == pstDeviceIF->fnGetPixel)
{ {
/* Action function is unspecified, no actions. */ /* Action function is unspecified, no actions. */
} }