29d6678fd5
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
62 lines
1.6 KiB
Diff
62 lines
1.6 KiB
Diff
Index: xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c
|
|
===================================================================
|
|
--- xorg-server-1.3.0.0.orig/hw/kdrive/fbdev/fbdev.c 2008-09-25 21:55:12.000000000 +0100
|
|
+++ xorg-server-1.3.0.0/hw/kdrive/fbdev/fbdev.c 2008-09-25 21:55:46.000000000 +0100
|
|
@@ -498,6 +498,7 @@
|
|
KdScreenInfo *screen = pScreenPriv->screen;
|
|
FbdevScrPriv *scrpriv = screen->driver;
|
|
Bool wasEnabled = pScreenPriv->enabled;
|
|
+ FbdevPriv *priv = screen->card->driver;
|
|
FbdevScrPriv oldscr;
|
|
int oldwidth;
|
|
int oldheight;
|
|
@@ -525,11 +526,46 @@
|
|
oldheight = screen->height;
|
|
oldmmwidth = pScreen->mmWidth;
|
|
oldmmheight = pScreen->mmHeight;
|
|
-
|
|
+
|
|
/*
|
|
* Set new configuration
|
|
*/
|
|
-
|
|
+
|
|
+ if (newwidth != oldwidth || newheight != oldheight)
|
|
+ {
|
|
+ struct fb_var_screeninfo var;
|
|
+ int k;
|
|
+
|
|
+ k = ioctl (priv->fd, FBIOGET_VSCREENINFO, &var);
|
|
+
|
|
+ if (k < 0)
|
|
+ {
|
|
+ ErrorF("Error with framebuffer ioctl FBIOGET_VSCREENINFO: %s", strerror (errno));
|
|
+ return FALSE;
|
|
+ }
|
|
+
|
|
+ var.xres = newwidth;
|
|
+ var.yres = newheight;
|
|
+ var.activate = FB_ACTIVATE_NOW;
|
|
+
|
|
+ k = ioctl (priv->fd, FBIOPUT_VSCREENINFO, &var);
|
|
+
|
|
+ if (k >= 0)
|
|
+ {
|
|
+ if ((k=ioctl(priv->fd, FBIOGET_FSCREENINFO, &priv->fix)) < 0)
|
|
+ {
|
|
+ perror("Error with framebuffer ioctl FIOGET_FSCREENINFO");
|
|
+ close (priv->fd);
|
|
+ return FALSE;
|
|
+ }
|
|
+ if ((k=ioctl(priv->fd, FBIOGET_VSCREENINFO, &priv->var)) < 0) {
|
|
+ perror("Error framebuffer ioctl FIOGET_VSCREENINFO");
|
|
+ close (priv->fd);
|
|
+ return FALSE;
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+
|
|
scrpriv->randr = KdAddRotation (screen->randr, randr);
|
|
|
|
KdOffscreenSwapOut (screen->pScreen);
|