Squashed commit of the following:

graphics/nxbe/nxbe_bitmap.c:  Fix another coordinate system problem.

    graphics/:  Review use of device coordinate system with window frambebuffer and make fixes accordingly.

    graphics/nxbe/nxbe_fill.c:  Fix a coordinate system bug.  Was trying to update the window fraembuffer using the device coordinate system.  Need to use the relative coordinate system.

    graphics/:  Use DEBUGASSERT instead of return an error since the is no user to handle the errors within the NX server.  Use CONFIG_DEBUG_GRAPHICS instead of CONFIG_DEBUG_FEATURES in most cases.

    graphics/:  Nothing under graphics/ should set the errno.
This commit is contained in:
Gregory Nutt
2019-03-17 11:34:45 -06:00
parent 18d52ecee2
commit 92554257b9
48 changed files with 240 additions and 603 deletions
+3 -6
View File
@@ -39,6 +39,8 @@
#include <nuttx/config.h>
#include <assert.h>
#include <nuttx/nx/nxglib.h>
#include <nuttx/nx/nx.h>
@@ -112,12 +114,7 @@ void nxbe_setpixel(FAR struct nxbe_window_s *wnd,
struct nxgl_rect_s rect;
int i;
#ifdef CONFIG_DEBUG_FEATURES
if (!wnd || !pos)
{
return;
}
#endif
DEBUGASSERT(wnd != NULL && pos != NULL);
/* Offset the position by the window origin */