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
@ -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…
x
Reference in New Issue
Block a user