mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-21 05:40:42 +01:00
fix miniglx setting virtual size of 832 for 800x600
This commit is contained in:
parent
ae4e58c9ab
commit
ac54de021a
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue