Fix off-by-one error in 180 degree framebuffer rotation

This commit is contained in:
Vojtech Bocek
2015-03-17 13:04:48 +01:00
parent e1efd54b14
commit f4bfddc840

View File

@@ -368,7 +368,7 @@ void fb_rotate_180deg(px_type *dst, px_type *src)
{
src -= padding;
for(x = 0; x < fb_width; ++x)
*dst++ = *src--;
*dst++ = *(--src);
dst += padding;
}
}