diff --git a/examples/nximage/nximage_bitmap.c b/examples/nximage/nximage_bitmap.c index 7e8285e31..287592430 100644 --- a/examples/nximage/nximage_bitmap.c +++ b/examples/nximage/nximage_bitmap.c @@ -1238,7 +1238,7 @@ void nximage_blitrow(FAR nxgl_mxpixel_t *run, FAR const void **state) last = nximage_bgcolor(); #endif - for (width = 0; width < IMAGE_WIDTH; pos++) + for (width = 0; width < SCALED_WIDTH; pos++) { nrun = (unsigned int)pos->npix; color = g_rgblut[pos->code];