mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 15:53:34 +08:00
Fix typo in example code
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4816 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
/********************************************************************************************
|
/********************************************************************************************
|
||||||
* examples/nximage/nximage_bitmap.c
|
* examples/nximage/nximage_bitmap.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -3683,7 +3683,7 @@ void nximage_blitrow(FAR nxgl_mxpixel_t *run, FAR const void **state)
|
|||||||
#if defined(CONFIG_EXAMPLES_NXIMAGE_XSCALEp5) || defined(CONFIG_EXAMPLES_NXIMAGE_XSCALE1p5)
|
#if defined(CONFIG_EXAMPLES_NXIMAGE_XSCALEp5) || defined(CONFIG_EXAMPLES_NXIMAGE_XSCALE1p5)
|
||||||
nhalfpixels += nrun & 1;
|
nhalfpixels += nrun & 1;
|
||||||
#ifdef CONFIG_EXAMPLES_NXIMAGE_XSCALEp5
|
#ifdef CONFIG_EXAMPLES_NXIMAGE_XSCALEp5
|
||||||
nrum >>= 1;
|
nrun >>= 1;
|
||||||
#else
|
#else
|
||||||
nrun = nrun + (nrun >> 1);
|
nrun = nrun + (nrun >> 1);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user