mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-19 19:48:46 +00:00
Documentation update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3811 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
c0ce73dffb
commit
f6f94461ed
1 changed files with 8 additions and 1 deletions
|
|
@ -339,7 +339,14 @@ void nximage_image(NXWINDOW hwnd)
|
|||
|
||||
for (i = 0; i < SCALED_WIDTH; i++)
|
||||
{
|
||||
g_runs[0].run[i] = nximage_avgcolor(g_runs[0].run[i], g_runs[1].run[i]);
|
||||
/* Only average if the corresponding pixels in each row differ */
|
||||
|
||||
nxgl_mxpixel_t pix0 = g_runs[0].run[i];
|
||||
nxgl_mxpixel_t pix1 = g_runs[1].run[i];
|
||||
if (pix0 != pix1)
|
||||
{
|
||||
g_runs[0].run[i] = nximage_avgcolor(pix0, pix1);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue