diff options
author | Jingoo Han <jg1.han@samsung.com> | 2011-05-24 04:55:23 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-05-24 05:04:37 -0400 |
commit | af1ce6b2fad7d572aef040d61a935da28a861853 (patch) | |
tree | a18e6ff51105adacd20c887fdceec15872878898 /drivers/video | |
parent | 6aa9681100303bd467cbd0262eb00da8d492fc7f (diff) |
video: s3c-fb: correct transparency checking in 32bpp
32bpp means ARGB 8888 in the driver, therfore the transparency length
and offset should be 8 and 24 respectively. However, the transparency
length and offset were previously 0, which means that the driver supports
RGB 888 without alpha blending when 32bpp is used.
So, the transparency checking in 32bpp is corrected so that the
transparency length and offset are 8 and 24 respectively.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/s3c-fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 2bd86a9fa3a0..0352afa49a39 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c | |||
@@ -302,6 +302,7 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var, | |||
302 | var->blue.length = 5; | 302 | var->blue.length = 5; |
303 | break; | 303 | break; |
304 | 304 | ||
305 | case 32: | ||
305 | case 28: | 306 | case 28: |
306 | case 25: | 307 | case 25: |
307 | var->transp.length = var->bits_per_pixel - 24; | 308 | var->transp.length = var->bits_per_pixel - 24; |
@@ -310,7 +311,6 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var, | |||
310 | case 24: | 311 | case 24: |
311 | /* our 24bpp is unpacked, so 32bpp */ | 312 | /* our 24bpp is unpacked, so 32bpp */ |
312 | var->bits_per_pixel = 32; | 313 | var->bits_per_pixel = 32; |
313 | case 32: | ||
314 | var->red.offset = 16; | 314 | var->red.offset = 16; |
315 | var->red.length = 8; | 315 | var->red.length = 8; |
316 | var->green.offset = 8; | 316 | var->green.offset = 8; |