2007-08-11 14:42:21

by Michal Januszewski

[permalink] [raw]
Subject: [PATCH 5/7] uvesafb: use VISUAL_TRUECOLOR as the default visual

Set uvesafb's default visual to truecolor. This prevents fbcon
from being detected as 'mono' when using uvesafb.

Signed-off-by: Michal Januszewski <[email protected]>
---
diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c
index e480670..2f1e5af 100644
--- a/drivers/video/uvesafb.c
+++ b/drivers/video/uvesafb.c
@@ -37,6 +37,7 @@ static struct fb_fix_screeninfo uvesafb_fix __devinitdata = {
.id = "VESA VGA",
.type = FB_TYPE_PACKED_PIXELS,
.accel = FB_ACCEL_NONE,
+ .visual = FB_VISUAL_TRUECOLOR,
};

static int mtrr __devinitdata = 3; /* enable mtrr by default */