Skip to content
Snippets Groups Projects
Commit f6f94461 authored by patacongo's avatar patacongo
Browse files

Documentation update

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3811 42af7a65-404d-4744-a932-0658087f49c3
parent c0ce73df
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment