Run codespell -w with the latest dictonary again

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-02-23 16:50:23 +08:00
committed by Abdelatif Guettouche
parent 55a7dfc9a7
commit cde88cabcc
1532 changed files with 3117 additions and 3117 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ config NX_RAMBACKED
default n
---help---
If this option is selected, then windows may be optionally created
with a RAM frambuffer backing up the window content. Rending into
with a RAM framebuffer backing up the window content. Rending into
the window will result in rending into the backup framebuffer, then
updating the physical display from the framebuffer.
+1 -1
View File
@@ -27,7 +27,7 @@ at the present, but here is the longer term roadmap:
without NxWidgets and is built on top of NX.
NXFONTS - A set of C graphics tools for presenting (bitmap) font images.
NX - The tiny NuttX windowing system. This includes the small-footprint
multi-user implentation (NXMU as described below). NX can be used
multi-user implementation (NXMU as described below). NX can be used
without NxWidgets and without NXTOOLKIT for raw access to window memory.
NXGLIB - Low level graphics utilities and direct framebuffer rendering logic.
NX is built on top of NXGLIB.
+5 -5
View File
@@ -336,7 +336,7 @@ void nxbe_cursor_enable(FAR struct nxbe_state_s *be, bool enable);
* Set the cursor image
*
* The image is provided a a 2-bits-per-pixel image. The two bit incoding
* is as followings:
* is as following:
*
* 00 - The transparent background
* 01 - Color1: The main color of the cursor
@@ -389,7 +389,7 @@ void nxbe_cursor_setposition(FAR struct nxbe_state_s *be,
* be - The back-end state structure instance, or
* wnd - Window state structure
* rect - The modified region of the window. In windows coordinates for
* nxbe_cursor_backupdraw(); in graphics device corrdinates for
* nxbe_cursor_backupdraw(); in graphics device coordinates for
* nxbe_cursor_backupdraw_dev().
* plane - The plane number to use.
*
@@ -415,7 +415,7 @@ void nxbe_cursor_backupdraw_dev(FAR struct nxbe_state_s *be,
* be - The back-end state structure instance, or
* wnd - Window state structure
* rect - The modified region of the window. In windows coordinates for
* nxbe_cursor_backupdraw(); in graphics device corrdinates for
* nxbe_cursor_backupdraw(); in graphics device coordinates for
* nxbe_cursor_backupdraw_dev().
*
* Returned Value:
@@ -505,7 +505,7 @@ void nxbe_modal(FAR struct nxbe_window_s *wnd, bool enable);
*
* Description:
* Select if the window is visible or hidden. A hidden window is still
* present will will update normally, but will be on the visiable on the
* present will will update normally, but will be on the visible on the
* display until it is unhidden.
*
* Input Parameters:
@@ -692,7 +692,7 @@ void nxbe_bitmap(FAR struct nxbe_window_s *wnd,
* Name: nxbe_flush
*
* Description:
* After per-window frambuffer has been updated, the modified region must
* After per-window framebuffer has been updated, the modified region must
* be written to device graphics memory. That function is managed by this
* simple function. It does the following:
*
+1 -1
View File
@@ -97,7 +97,7 @@ void nxbe_closewindow(FAR struct nxbe_window_s *wnd)
NXBE_STATE_CLRMODAL(be);
}
/* A hidden window does not exist in the hiearchy */
/* A hidden window does not exist in the hierarchy */
if (!NXBE_ISHIDDEN(wnd))
{
+4 -4
View File
@@ -114,7 +114,7 @@ void nxbe_cursor_enable(FAR struct nxbe_state_s *be, bool enable)
be->cursor.visible = true;
/* For a hardware cursor, this would require some interaction with the
* grahics device.
* graphics device.
*/
# error Missing logic
@@ -147,7 +147,7 @@ void nxbe_cursor_enable(FAR struct nxbe_state_s *be, bool enable)
}
#else
/* For a hardware cursor, this would require some interaction with the
* grahics device.
* graphics device.
*/
# error Missing logic
@@ -284,7 +284,7 @@ errout_with_erase:
#else
/* For a hardware cursor, this would require some interaction with the
* grahics device.
* graphics device.
*/
# error Missing logic
@@ -361,7 +361,7 @@ void nxbe_cursor_setposition(FAR struct nxbe_state_s *be,
#else
/* For a hardware cursor, this would require some interaction with the
* grahics device.
* graphics device.
*/
# error Missing logic
+1 -1
View File
@@ -157,7 +157,7 @@ void nxbe_cursor_backupdraw(FAR struct nxbe_window_s *wnd,
* be - The back-end state structure instance, or
* wnd - Window state structure
* rect - The modified region of the window. In windows coordinates for
* nxbe_cursor_backupdraw(); in graphics device corrdinates for
* nxbe_cursor_backupdraw(); in graphics device coordinates for
* nxbe_cursor_backupdraw_dev().
*
* Returned Value:
+1 -1
View File
@@ -168,7 +168,7 @@ static inline void nxbe_fill_pwfb(FAR struct nxbe_window_s *wnd,
DEBUGASSERT(wnd->be->plane[0].pwfb.fillrectangle != NULL);
/* The rectangle that we receive here is in abolute device coordinates. We
/* The rectangle that we receive here is in absolute device coordinates. We
* need to restore this to windows relative coordinates.
*/
+2 -2
View File
@@ -151,7 +151,7 @@ static inline void nxbe_filltrapezoid_dev(FAR struct nxbe_window_s *wnd,
#endif
{
/* Rend any part of the trapezoid that is not occluded by a window
* higher in the hiearchy.
* higher in the hierarchy.
*/
info.color = color[i];
@@ -201,7 +201,7 @@ static inline void nxbe_filltrapezoid_pwfb(FAR struct nxbe_window_s *wnd,
struct nxgl_point_s origin;
unsigned int bpp;
/* Both the rectangle that we receive here are in abolute device
/* Both the rectangle that we receive here are in absolute device
* coordinates. We need to restore both to windows relative coordinates.
*/
+2 -2
View File
@@ -57,7 +57,7 @@
* Name: nxbe_flush
*
* Description:
* After per-window frambuffer has been updated, the modified region must
* After per-window framebuffer has been updated, the modified region must
* be written to device graphics memory. That function is managed by this
* simple function. It does the following:
*
@@ -94,7 +94,7 @@ void nxbe_flush(FAR struct nxbe_window_s *wnd,
if (!NXBE_ISHIDDEN(wnd))
{
/* Copy the modified per-window frambuffer into device memory. */
/* Copy the modified per-window framebuffer into device memory. */
nxbe_bitmap_dev(wnd, dest, src, origin, stride);
+1 -1
View File
@@ -126,7 +126,7 @@ static inline void nxbe_getrectangle_pwfb(FAR struct nxbe_window_s *wnd,
DEBUGASSERT(pplane != NULL && pplane->pwfb.getrectangle != NULL);
/* The rectangle that we receive here is in abolute device coordinates.
/* The rectangle that we receive here is in absolute device coordinates.
* We need to restore this to windows relative coordinates.
*/
+1 -1
View File
@@ -65,7 +65,7 @@ void nxbe_lower(FAR struct nxbe_window_s *wnd)
/* If the window is already at the bottom, then there is nothing to do.
* Refuse to lower the background window; Refuse to lower a modal window.
* It is impossible to lower a hidden window because it does not exist
* in the hiearchy.
* in the hierarchy.
*/
if (wnd->below == NULL || wnd->below == &be->bkgd ||
+1 -1
View File
@@ -336,7 +336,7 @@ static inline void nxbe_move_pwfb(FAR struct nxbe_window_s *wnd,
struct nxgl_rect_s destrect;
unsigned int bpp;
/* The rectangle that we receive here is in abolute device coordinates. We
/* The rectangle that we receive here is in absolute device coordinates. We
* need to restore this to windows relative coordinates.
*/
+1 -1
View File
@@ -179,7 +179,7 @@ void nxbe_hide_window(FAR struct nxbe_window_s *wnd)
*
* Description:
* Select if the window is visible or hidden. A hidden window is still
* present will will update normally, but will be on the visiable on the
* present will will update normally, but will be on the visible on the
* display until it is unhidden.
*
* Input Parameters:
+1 -1
View File
@@ -83,7 +83,7 @@ void NXGL_FUNCNAME(nxgl_copyrectangle, NXGLIB_SUFFIX)
deststride = pinfo->stride;
/* Get the dimensions of the rectange to fill: width in pixels,
/* Get the dimensions of the rectangle to fill: width in pixels,
* height in rows
*/
+1 -1
View File
@@ -89,7 +89,7 @@ void NXGL_FUNCNAME(nxgl_fillrectangle, NXGLIB_SUFFIX)
stride = pinfo->stride;
/* Get the dimensions of the rectange to fill in pixels */
/* Get the dimensions of the rectangle to fill in pixels */
width = rect->pt2.x - rect->pt1.x + 1;
rows = rect->pt2.y - rect->pt1.y + 1;
+1 -1
View File
@@ -130,7 +130,7 @@ void NXGL_FUNCNAME(nxgl_getrectangle, NXGLIB_SUFFIX)
fbstride = pinfo->stride;
/* Get the dimensions of the rectange to copy: width in pixels, height
/* Get the dimensions of the rectangle to copy: width in pixels, height
* in rows
*/
+1 -1
View File
@@ -132,7 +132,7 @@ void NXGL_FUNCNAME(nxgl_moverectangle,NXGLIB_SUFFIX)
stride = pinfo->stride;
/* Get the dimensions of the rectange to fill: width in pixels, height
/* Get the dimensions of the rectangle to fill: width in pixels, height
* in rows
*/
+3 -3
View File
@@ -62,7 +62,7 @@
* Name: nxgl_setpixel_*bpp
*
* Description:
* Draw a single pixel in frambuffer memory at the given position and with
* Draw a single pixel in framebuffer memory at the given position and with
* the given color. This is equivalent to nxgl_fillrectangle_*bpp() with
* a 1x1 rectangle but is more efficient.
*
@@ -105,7 +105,7 @@ void NXGL_FUNCNAME(nxgl_setpixel, NXGLIB_SUFFIX)
mask = (15 << shift); /* Mask is 0x0f or 0xf0 */
color <<= shift; /* Color is positioned under the mask */
#else
# error "Unsupport pixel depth"
# error "Unsupported pixel depth"
#endif
# else /* CONFIG_NX_PACKEDMSFIRST */
@@ -123,7 +123,7 @@ void NXGL_FUNCNAME(nxgl_setpixel, NXGLIB_SUFFIX)
mask = (15 << shift); /* Mask is 0x0f or 0xf0 */
color <<= shift; /* Color is positioned under the mask */
#else
# error "Unsupport pixel depth"
# error "Unsupported pixel depth"
#endif
#endif /* CONFIG_NX_PACKEDMSFIRST */
+1 -1
View File
@@ -74,7 +74,7 @@ void NXGL_FUNCNAME(nxgl_copyrectangle, NXGLIB_SUFFIX)
unsigned int remainder;
#endif
/* Get the dimensions of the rectange to fill: width in pixels,
/* Get the dimensions of the rectangle to fill: width in pixels,
* height in rows
*/
+1 -1
View File
@@ -76,7 +76,7 @@ void NXGL_FUNCNAME(nxgl_fillrectangle, NXGLIB_SUFFIX)
unsigned int ncols;
unsigned int row;
/* Get the dimensions of the rectange to fill in pixels */
/* Get the dimensions of the rectangle to fill in pixels */
ncols = rect->pt2.x - rect->pt1.x + 1;
+1 -1
View File
@@ -67,7 +67,7 @@ void NXGL_FUNCNAME(nxgl_getrectangle, NXGLIB_SUFFIX)
unsigned int ncols;
unsigned int srcrow;
/* Get the width of the rectange to move in pixels. */
/* Get the width of the rectangle to move in pixels. */
ncols = rect->pt2.x - rect->pt1.x + 1;
+1 -1
View File
@@ -69,7 +69,7 @@ void NXGL_FUNCNAME(nxgl_moverectangle, NXGLIB_SUFFIX)
unsigned int srcrow;
unsigned int destrow;
/* Get the width of the rectange to move in pixels. */
/* Get the width of the rectangle to move in pixels. */
ncols = rect->pt2.x - rect->pt1.x + 1;
+2 -2
View File
@@ -100,7 +100,7 @@ void NXGL_FUNCNAME(nxgl_setpixel, NXGLIB_SUFFIX)
mask = (15 << shift); /* Mask is 0x0f or 0xf0 */
color <<= shift; /* Color is positioned under the mask */
#else
# error "Unsupport pixel depth"
# error "Unsupported pixel depth"
#endif
# else /* CONFIG_NX_PACKEDMSFIRST */
@@ -118,7 +118,7 @@ void NXGL_FUNCNAME(nxgl_setpixel, NXGLIB_SUFFIX)
mask = (15 << shift); /* Mask is 0x0f or 0xf0 */
color <<= shift; /* Color is positioned under the mask */
#else
# error "Unsupport pixel depth"
# error "Unsupported pixel depth"
#endif
#endif /* CONFIG_NX_PACKEDMSFIRST */
+1 -1
View File
@@ -506,7 +506,7 @@ void nxglib_cursor_erase_32bpp(FAR struct nxbe_state_s *be,
* Name: nxgl_cursor_backup_*bpp
*
* Description:
* Save the backgroud image for subsequent use to erase the cursor from the
* Save the background image for subsequent use to erase the cursor from the
* device graphics memory.
*
****************************************************************************/
+1 -1
View File
@@ -83,7 +83,7 @@ void NXGL_FUNCNAME(pwfb_copyrectangle, NXGLIB_SUFFIX)
deststride = bwnd->stride;
/* Get the dimensions of the rectange to fill: width in pixels,
/* Get the dimensions of the rectangle to fill: width in pixels,
* height in rows
*/
+1 -1
View File
@@ -89,7 +89,7 @@ void NXGL_FUNCNAME(pwfb_fillrectangle, NXGLIB_SUFFIX)
stride = bwnd->stride;
/* Get the dimensions of the rectange to fill in pixels */
/* Get the dimensions of the rectangle to fill in pixels */
width = rect->pt2.x - rect->pt1.x + 1;
rows = rect->pt2.y - rect->pt1.y + 1;
+1 -1
View File
@@ -131,7 +131,7 @@ void NXGL_FUNCNAME(pwfb_getrectangle, NXGLIB_SUFFIX)
fbstride = bwnd->stride;
/* Get the dimensions of the rectange to copy: width in pixels, height
/* Get the dimensions of the rectangle to copy: width in pixels, height
* in rows
*/
+1 -1
View File
@@ -133,7 +133,7 @@ void NXGL_FUNCNAME(pwfb_moverectangle,NXGLIB_SUFFIX)
stride = bwnd->stride;
/* Get the dimensions of the rectange to fill: width in pixels, height
/* Get the dimensions of the rectangle to fill: width in pixels, height
* in rows
*/
+3 -3
View File
@@ -62,7 +62,7 @@
* Name: pwfb_setpixel_*bpp
*
* Description:
* Draw a single pixel in frambuffer memory at the given position and with
* Draw a single pixel in framebuffer memory at the given position and with
* the given color. This is equivalent to nxgl_fillrectangle_*bpp() with
* a 1x1 rectangle but is more efficient.
*
@@ -106,7 +106,7 @@ void NXGL_FUNCNAME(pwfb_setpixel, NXGLIB_SUFFIX)
mask = (15 << shift); /* Mask is 0x0f or 0xf0 */
color <<= shift; /* Color is positioned under the mask */
#else
# error "Unsupport pixel depth"
# error "Unsupported pixel depth"
#endif
# else /* CONFIG_NX_PACKEDMSFIRST */
@@ -124,7 +124,7 @@ void NXGL_FUNCNAME(pwfb_setpixel, NXGLIB_SUFFIX)
mask = (15 << shift); /* Mask is 0x0f or 0xf0 */
color <<= shift; /* Color is positioned under the mask */
#else
# error "Unsupport pixel depth"
# error "Unsupported pixel depth"
#endif
#endif /* CONFIG_NX_PACKEDMSFIRST */
+1 -1
View File
@@ -190,7 +190,7 @@ static inline int nxmu_setup(FAR const char *mqname, FAR NX_DRIVERTYPE *dev,
#endif /* CONFIG_FB_CMAP */
/* Initialize the non-NULL elements of the server connection structure.
* Oddly, this strcture represents the connection between the server and
* Oddly, this structure represents the connection between the server and
* itself.
*
* Open the incoming server MQ. The server receives messages on the
+2 -2
View File
@@ -319,7 +319,7 @@ static int nxterm_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
{
/* NOTE: We don't need driver context here because the NXTERM handle
* provided within each of the NXTERM IOCTL command data. Mutual
* exclusion is similar managed by the IOCTL cmmand hendler.
* exclusion is similar managed by the IOCTL cmmand handler.
*
* This permits the IOCTL to be called in abnormal context (such as
* from boardctl())
@@ -383,7 +383,7 @@ static int nxterm_unlink(FAR struct inode *inode)
*
* NOTE: We don't need driver context here because the NXTERM handle
* provided within each of the NXTERM IOCTL command data. Mutual
* exclusion is similar managed by the IOCTL cmmand hendler.
* exclusion is similar managed by the IOCTL cmmand handler.
*
* This permits the IOCTL to be called in abnormal context (such as
* from boardctl())
+1 -1
View File
@@ -198,7 +198,7 @@ static enum nxterm_vt100state_e nxterm_vt100seq(FAR struct nxterm_state_s *priv,
/* The 'seqsize' is still smaller than the potential match(es). We
* will need to collect more characters before we can make a decision.
* Retun an indication that we have consumed the character.
* Return an indication that we have consumed the character.
*/
return VT100_CONSUMED;
+2 -2
View File
@@ -121,7 +121,7 @@ static int up_putcmap(FAR struct fb_vtable_s *vtable,
static int up_getcursor(FAR struct fb_vtable_s *vtable,
FAR struct fb_cursorattrib_s *attrib);
static int up_setcursor(FAR struct fb_vtable_s *vtable,
FAR struct fb_setcursor_s *setttings);
FAR struct fb_setcursor_s *settings);
#endif
/****************************************************************************
@@ -490,7 +490,7 @@ static inline int vnc_wait_start(int display)
* started. But we might be here before the thread has gotten that far.
*
* If it has been allocated, then wait until it is in the INIITIALIZED
* state. The INITIAILIZED states indicates tht the session structure
* state. The INITIAILIZED states indicates that the session structure
* has been allocated and fully initialized.
*/
+1 -1
View File
@@ -326,7 +326,7 @@ int vnc_negotiate(FAR struct vnc_session_s *session)
* framebuffer, its pixel format and the name associated with the desktop:"
*
* RealVNC client supports this resolutions:
* Full (all availlable colors) - Max resolution of the platform (TrueColor)
* Full (all available colors) - Max resolution of the platform (TrueColor)
* Medium (256 colors) - 256 colors (Paletted)
* Low (64 colors) - RGB8 2:2:2 (default, TrueColor)
* Very Low (8 colors) - RGB3 1:1:1 (TrueColor)
+1 -1
View File
@@ -480,7 +480,7 @@ int vnc_client_encodings(FAR struct vnc_session_s *session,
encoding = rfb_getbe32(&encodings->encodings[i << 2]);
/* Only a limited support for of RRE is vailable now. */
/* Only a limited support for of RRE is available now. */
if (encoding == RFB_ENCODING_RRE)
{
+2 -2
View File
@@ -240,7 +240,7 @@ int vnc_server(int argc, FAR char *argv[])
int display;
int ret;
/* A single argument is expected: A diplay port number in ASCII form */
/* A single argument is expected: A display port number in ASCII form */
if (argc != 2)
{
@@ -344,7 +344,7 @@ int vnc_server(int argc, FAR char *argv[])
continue;
}
/* Let the framebuffer driver know that we are ready to preform
/* Let the framebuffer driver know that we are ready to perform
* updates.
*/
+1 -1
View File
@@ -376,7 +376,7 @@ static FAR void *vnc_updater(FAR void *arg)
while (session->state == VNCSERVER_RUNNING)
{
/* Get the next queued rectangle update. This call will block until an
* upate is available for the case where the update queue is empty.
* update is available for the case where the update queue is empty.
*/
srcrect = vnc_remove_queue(session);