mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user