aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMichal Januszewski <[email protected]>2009-05-06 16:02:56 -0700
committerLinus Torvalds <[email protected]>2009-05-06 16:36:10 -0700
commitbdca0f9b1eabb24373e2307fe492f428f5928abc (patch)
treeb3acaf5ac74fc954c518d11616007eab3bc877fd /net/unix/af_unix.c
parent184101bf143ac96d62b3dcc17e7b3550f98d3350 (diff)
fbdev: fix fillrect for 24bpp modes
The software fillrect routines do not work properly when the number of pixels per machine word is not an integer. To see that, run the following command on a fbdev console with a 24bpp video mode, using a non-accelerated driver such as (u)vesafb: reset ; echo -e '\e[41mtest\e[K' The expected result is 'test' displayed on a line with red background. Instead of that, 'test' has a red background, but the rest of the line (rendered using fillrect()) contains a distored colorful pattern. This patch fixes the problem by correctly computing rotation shifts. It has been tested in a 24bpp mode on 32- and 64-bit little-endian machines. Signed-off-by: Michal Januszewski <[email protected]> Acked-by: Krzysztof Helt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions