diff --git a/graphics/nxmu/nxmu_server.c b/graphics/nxmu/nxmu_server.c index 5a592eec783..4b18a7580d8 100644 --- a/graphics/nxmu/nxmu_server.c +++ b/graphics/nxmu/nxmu_server.c @@ -255,8 +255,8 @@ static inline int nxmu_setup(FAR const char *mqname, fe->be.bkgd.conn = &fe->conn; fe->be.bkgd.be = (FAR struct nxbe_state_s*)fe; - fe->be.bkgd.bounds.pt2.x = fe->be.vinfo.xres; - fe->be.bkgd.bounds.pt2.y = fe->be.vinfo.yres; + fe->be.bkgd.bounds.pt2.x = fe->be.vinfo.xres - 1; + fe->be.bkgd.bounds.pt2.y = fe->be.vinfo.yres - 1; /* Complete initialization of the server state structure. The * window list contains only one element: The background window diff --git a/graphics/nxsu/nx_open.c b/graphics/nxsu/nx_open.c index 15efd3dbebb..901b7710952 100644 --- a/graphics/nxsu/nx_open.c +++ b/graphics/nxsu/nx_open.c @@ -139,8 +139,8 @@ static inline int nxsu_setup(FAR struct fb_vtable_s *fb, fe->be.bkgd.be = &fe->be; fe->be.bkgd.cb = &g_bkgdcb; - fe->be.bkgd.bounds.pt2.x = fe->be.vinfo.xres; - fe->be.bkgd.bounds.pt2.y = fe->be.vinfo.yres; + fe->be.bkgd.bounds.pt2.x = fe->be.vinfo.xres - 1; + fe->be.bkgd.bounds.pt2.y = fe->be.vinfo.yres - 1; /* Complete initialization of the server state structure. The * window list contains only one element: The background window