summaryrefslogtreecommitdiffstats
path: root/meta/packages/xorg-xserver/xserver-kdrive/xfbdev-fb-opt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/xorg-xserver/xserver-kdrive/xfbdev-fb-opt.patch')
-rw-r--r--meta/packages/xorg-xserver/xserver-kdrive/xfbdev-fb-opt.patch36
1 files changed, 20 insertions, 16 deletions
diff --git a/meta/packages/xorg-xserver/xserver-kdrive/xfbdev-fb-opt.patch b/meta/packages/xorg-xserver/xserver-kdrive/xfbdev-fb-opt.patch
index 89a56719d7..a8f002ea2a 100644
--- a/meta/packages/xorg-xserver/xserver-kdrive/xfbdev-fb-opt.patch
+++ b/meta/packages/xorg-xserver/xserver-kdrive/xfbdev-fb-opt.patch
@@ -1,8 +1,18 @@
1diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c 1---
2index 86384f0..904d5f3 100644 2 hw/kdrive/fbdev/fbdev.c | 17 ++++++++++++-----
3--- a/hw/kdrive/fbdev/fbdev.c 3 hw/kdrive/fbdev/fbdev.h | 1 +
4+++ b/hw/kdrive/fbdev/fbdev.c 4 hw/kdrive/fbdev/fbinit.c | 20 ++++++++++++++++----
5@@ -38,11 +38,17 @@ fbdevInitialize (KdCardInfo *card, Fbdev 5 3 files changed, 29 insertions(+), 9 deletions(-)
6
7--- xorg-server-X11R7.1-1.1.0.orig/hw/kdrive/fbdev/fbdev.c
8+++ xorg-server-X11R7.1-1.1.0/hw/kdrive/fbdev/fbdev.c
9@@ -33,16 +33,23 @@
10
11 extern int KdTsPhyScreen;
12
13+char *fbdevDevicePath = NULL;
14 Bool
15 fbdevInitialize (KdCardInfo *card, FbdevPriv *priv)
6 { 16 {
7 int k; 17 int k;
8 unsigned long off; 18 unsigned long off;
@@ -25,10 +35,8 @@ index 86384f0..904d5f3 100644
25 /* quiet valgrind */ 35 /* quiet valgrind */
26 memset (&priv->fix, '\0', sizeof (priv->fix)); 36 memset (&priv->fix, '\0', sizeof (priv->fix));
27 if ((k=ioctl(priv->fd, FBIOGET_FSCREENINFO, &priv->fix)) < 0) { 37 if ((k=ioctl(priv->fd, FBIOGET_FSCREENINFO, &priv->fix)) < 0) {
28diff --git a/hw/kdrive/fbdev/fbdev.h b/hw/kdrive/fbdev/fbdev.h 38--- xorg-server-X11R7.1-1.1.0.orig/hw/kdrive/fbdev/fbdev.h
29index d37b995..b7951db 100644 39+++ xorg-server-X11R7.1-1.1.0/hw/kdrive/fbdev/fbdev.h
30--- a/hw/kdrive/fbdev/fbdev.h
31+++ b/hw/kdrive/fbdev/fbdev.h
32@@ -53,6 +53,7 @@ typedef struct _fbdevScrPriv { 40@@ -53,6 +53,7 @@ typedef struct _fbdevScrPriv {
33 } FbdevScrPriv; 41 } FbdevScrPriv;
34 42
@@ -37,11 +45,9 @@ index d37b995..b7951db 100644
37 45
38 Bool 46 Bool
39 fbdevInitialize (KdCardInfo *card, FbdevPriv *priv); 47 fbdevInitialize (KdCardInfo *card, FbdevPriv *priv);
40diff --git a/hw/kdrive/fbdev/fbinit.c b/hw/kdrive/fbdev/fbinit.c 48--- xorg-server-X11R7.1-1.1.0.orig/hw/kdrive/fbdev/fbinit.c
41index ba9d1c6..1a7e4bf 100644 49+++ xorg-server-X11R7.1-1.1.0/hw/kdrive/fbdev/fbinit.c
42--- a/hw/kdrive/fbdev/fbinit.c 50@@ -59,16 +59,28 @@ InitInput (int argc, char **argv)
43+++ b/hw/kdrive/fbdev/fbinit.c
44@@ -54,17 +54,30 @@ InitInput (int argc, char **argv)
45 void 51 void
46 ddxUseMsg (void) 52 ddxUseMsg (void)
47 { 53 {
@@ -72,7 +78,5 @@ index ba9d1c6..1a7e4bf 100644
72+ return KdProcessArgument (argc, argv, i); 78+ return KdProcessArgument (argc, argv, i);
73+} 79+}
74 80
75+char *fbdevDevicePath = NULL;
76 KdCardFuncs fbdevFuncs = { 81 KdCardFuncs fbdevFuncs = {
77 fbdevCardInit, /* cardinit */ 82 fbdevCardInit, /* cardinit */
78 fbdevScreenInit, /* scrinit */