diff options
Diffstat (limited to 'meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fbdev_use_current.patch')
-rw-r--r-- | meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fbdev_use_current.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fbdev_use_current.patch b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fbdev_use_current.patch new file mode 100644 index 0000000000..dc957cc825 --- /dev/null +++ b/meta/recipes-graphics/xorg-xserver/xserver-kdrive-1.3.0.0/fbdev_use_current.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | --- | ||
2 | hw/kdrive/fbdev/fbdev.c | 24 ++++++++++++++++-------- | ||
3 | 1 file changed, 16 insertions(+), 8 deletions(-) | ||
4 | |||
5 | Index: xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c | ||
6 | =================================================================== | ||
7 | --- xorg-server-1.3.0.0.orig/hw/kdrive/fbdev/fbdev.c 2008-01-11 14:40:16.000000000 +0000 | ||
8 | +++ xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c 2008-01-11 14:40:59.000000000 +0000 | ||
9 | @@ -182,16 +182,24 @@ fbdevScreenInitialize (KdScreenInfo *scr | ||
10 | screen->rate = 103; /* FIXME: should get proper value from fb driver */ | ||
11 | } | ||
12 | if (!screen->fb[0].depth) | ||
13 | - screen->fb[0].depth = 16; | ||
14 | + { | ||
15 | + if (k >= 0) | ||
16 | + screen->fb[0].depth = var.bits_per_pixel; | ||
17 | + else | ||
18 | + screen->fb[0].depth = 16; | ||
19 | + } | ||
20 | |||
21 | - t = KdFindMode (screen, fbdevModeSupported); | ||
22 | - screen->rate = t->rate; | ||
23 | - screen->width = t->horizontal; | ||
24 | - screen->height = t->vertical; | ||
25 | + if ((screen->width != var.xres) || (screen->height != var.yres)) | ||
26 | + { | ||
27 | + t = KdFindMode (screen, fbdevModeSupported); | ||
28 | + screen->rate = t->rate; | ||
29 | + screen->width = t->horizontal; | ||
30 | + screen->height = t->vertical; | ||
31 | |||
32 | - /* Now try setting the mode */ | ||
33 | - if (k < 0 || (t->horizontal != var.xres || t->vertical != var.yres)) | ||
34 | - fbdevConvertMonitorTiming (t, &var); | ||
35 | + /* Now try setting the mode */ | ||
36 | + if (k < 0 || (t->horizontal != var.xres || t->vertical != var.yres)) | ||
37 | + fbdevConvertMonitorTiming (t, &var); | ||
38 | + } | ||
39 | |||
40 | var.activate = FB_ACTIVATE_NOW; | ||
41 | var.bits_per_pixel = screen->fb[0].depth; | ||