Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184842
b: refs/heads/master
c: 3e9ff04
h: refs/heads/master
v: v3
  • Loading branch information
Janusz Krzysztofik authored and Tomi Valkeinen committed Feb 12, 2010
1 parent bdef019 commit 7982dfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60596045ac3d73ab6aac85d1eca617ba4c97b020
refs/heads/master: 3e9ff04408483b7972240cf433c7fb4b6b88cf0a
7 changes: 4 additions & 3 deletions trunk/drivers/video/omap/omapfb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,11 @@ static int set_color_mode(struct omapfb_plane_struct *plane,
return 0;
case 12:
var->bits_per_pixel = 16;
plane->color_mode = OMAPFB_COLOR_RGB444;
return 0;
case 16:
plane->color_mode = OMAPFB_COLOR_RGB565;
if (plane->fbdev->panel->bpp == 12)
plane->color_mode = OMAPFB_COLOR_RGB444;
else
plane->color_mode = OMAPFB_COLOR_RGB565;
return 0;
default:
return -EINVAL;
Expand Down

0 comments on commit 7982dfb

Please sign in to comment.