mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:22:32 +08:00
Misc fixes for clean compilation with graphics debug enabled
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4061 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -102,10 +102,11 @@ void nxtk_gettoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,
|
||||
struct nxgl_rect_s getrect;
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
if (!hwnd || !rect || !dest)
|
||||
if (!hfwnd || !rect || !dest)
|
||||
{
|
||||
gvdbg("Invalid parameters\n");
|
||||
errno = EINVAL;
|
||||
return ERROR;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -102,10 +102,10 @@ void nxtk_getwindow(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *rect,
|
||||
struct nxgl_rect_s getrect;
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
if (!hwnd || !rect || !dest)
|
||||
if (!hfwnd || !rect || !dest)
|
||||
{
|
||||
errno = EINVAL;
|
||||
return ERROR;
|
||||
gvdbg("Invalid parameters\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user