graphics/nxbe/nxbe_move.c: Fix a compile error found in build testing.

This commit is contained in:
Gregory Nutt 2019-03-15 16:11:39 -06:00
parent ae8e0359b9
commit e5c0084804

View file

@ -81,6 +81,7 @@ static void nxbe_clipmovesrc(FAR struct nxbe_clipops_s *cops,
struct nxbe_move_s *info = (struct nxbe_move_s *)cops;
struct nxgl_point_s offset;
#ifdef CONFIG_NX_UPDATE
FAR struct nxbe_window_s *wnd;
struct nxgl_rect_s update;
#endif
@ -100,6 +101,7 @@ static void nxbe_clipmovesrc(FAR struct nxbe_clipops_s *cops,
* apply the offset.
*/
wnd = info->wnd;
nxgl_rectoffset(&update, rect, offset.x - wnd->bounds.pt1.x,
offset.y - wnd->bounds.pt1.y);