mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
graphics/nxbe: Some bugfix found early in cursor testing.
This commit is contained in:
parent
d3bf5c7408
commit
ad76ca674b
6 changed files with 9 additions and 9 deletions
|
@ -89,7 +89,7 @@ void nxbe_closewindow(FAR struct nxbe_window_s *wnd)
|
|||
* indicate the modal state.
|
||||
*/
|
||||
|
||||
DEBUGASSERT(wnd->above == NULL & NXBE_STATE_ISMODAL(be));
|
||||
DEBUGASSERT(wnd->above == NULL && NXBE_STATE_ISMODAL(be));
|
||||
|
||||
/* Leave the modal state */
|
||||
|
||||
|
|
|
@ -100,8 +100,8 @@ void NXGL_FUNCNAME(nxglib_cursor_backup, NXGLIB_SUFFIX)
|
|||
{
|
||||
/* Get the width and the height of the images in pixels/rows */
|
||||
|
||||
width = be->cursor.bounds.pt2.x = be->cursor.bounds.pt1.x + 1;
|
||||
height = be->cursor.bounds.pt2.y = be->cursor.bounds.pt1.y + 1;
|
||||
width = be->cursor.bounds.pt2.x - be->cursor.bounds.pt1.x + 1;
|
||||
height = be->cursor.bounds.pt2.y - be->cursor.bounds.pt1.y + 1;
|
||||
|
||||
/* Get the width of the images in bytes. */
|
||||
|
||||
|
|
|
@ -147,8 +147,8 @@ void NXGL_FUNCNAME(nxglib_cursor_draw, NXGLIB_SUFFIX)
|
|||
{
|
||||
/* Get the width and the height of the images in pixels/rows */
|
||||
|
||||
width = be->cursor.bounds.pt2.x = be->cursor.bounds.pt1.x + 1;
|
||||
height = be->cursor.bounds.pt2.y = be->cursor.bounds.pt1.y + 1;
|
||||
width = be->cursor.bounds.pt2.x - be->cursor.bounds.pt1.x + 1;
|
||||
height = be->cursor.bounds.pt2.y - be->cursor.bounds.pt1.y + 1;
|
||||
|
||||
/* Get the width of the images in bytes. */
|
||||
|
||||
|
|
|
@ -99,8 +99,8 @@ void NXGL_FUNCNAME(nxglib_cursor_erase, NXGLIB_SUFFIX)
|
|||
{
|
||||
/* Get the width and the height of the images in pixels/rows */
|
||||
|
||||
width = be->cursor.bounds.pt2.x = be->cursor.bounds.pt1.x + 1;
|
||||
height = be->cursor.bounds.pt2.y = be->cursor.bounds.pt1.y + 1;
|
||||
width = be->cursor.bounds.pt2.x - be->cursor.bounds.pt1.x + 1;
|
||||
height = be->cursor.bounds.pt2.y - be->cursor.bounds.pt1.y + 1;
|
||||
|
||||
/* Get the width of the images in bytes. */
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ int nxcursor_enable(NXHANDLE hnd, bool enable);
|
|||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_NX_HWCURSORIMAGE) || defined(CONFIG_NX_SWCURSOR)
|
||||
int nxcursor_setimage(NXHANDLE hnd, FAR struct nx_cursorimage_s *image);
|
||||
int nxcursor_setimage(NXHANDLE hnd, FAR const struct nx_cursorimage_s *image);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
@ -119,7 +119,7 @@ int nxcursor_enable(NXHANDLE hnd, bool enable)
|
|||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_NX_HWCURSORIMAGE) || defined(CONFIG_NX_SWCURSOR)
|
||||
int nxcursor_setimage(NXHANDLE hnd, FAR struct nx_cursorimage_s *image)
|
||||
int nxcursor_setimage(NXHANDLE hnd, FAR const struct nx_cursorimage_s *image)
|
||||
{
|
||||
FAR struct nxmu_conn_s *conn = (FAR struct nxmu_conn_s *)hnd;
|
||||
struct nxsvrmsg_curimage_s outmsg;
|
||||
|
|
Loading…
Reference in a new issue