summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2005-08-08 04:17:52 +0000
committerDave Airlie <airliedfreedesktop.org>2005-08-08 04:17:52 +0000
commitac54de021a8f54b52cdb6d67fbdba5958de76f24 (patch)
tree54c60e83175e31b09c618e0abfa0e42a69ad266a /src
parentae4e58c9ab9f9d14865479394fc1e8e79fa702e0 (diff)
fix miniglx setting virtual size of 832 for 800x600
Diffstat (limited to 'src')
-rw-r--r--src/glx/mini/miniglx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/mini/miniglx.c b/src/glx/mini/miniglx.c
index 1dd21bd1f0e..c1c4446ab71 100644
--- a/src/glx/mini/miniglx.c
+++ b/src/glx/mini/miniglx.c
@@ -437,6 +437,8 @@ SetupFBDev( Display *dpy )
width = dpy->driverContext.shared.virtualWidth;
height = dpy->driverContext.shared.virtualHeight;
+ if (width==832)
+ width=800;
/* Bump size up to next supported mode.
*/
if (width <= 720 && height <= 480) {
@@ -459,8 +461,6 @@ SetupFBDev( Display *dpy )
}
- dpy->driverContext.shared.virtualHeight = height;
- dpy->driverContext.shared.virtualWidth = width;
dpy->driverContext.shared.fbStride = width * (dpy->driverContext.bpp / 8);
/* set the depth, resolution, etc */