]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - xorg-x11-server/patches/xserver-1.5.0-projector-fb-size.patch
c6178b879b7498b7de75392298eddd09a4cc081e
[people/ms/ipfire-3.x.git] / xorg-x11-server / patches / xserver-1.5.0-projector-fb-size.patch
1 From dc5cedd61e00afec33cbfaa7fdfbb6c357074dbd Mon Sep 17 00:00:00 2001
2 From: =?utf-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= <sandmann@redhat.com>
3 Date: Thu, 11 Sep 2008 12:51:31 -0400
4 Subject: [PATCH] Make room for an external monitor if we have enough video RAM
5
6 ---
7 hw/xfree86/modes/xf86Crtc.c | 9 +++++++++
8 1 files changed, 9 insertions(+), 0 deletions(-)
9
10 diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
11 index 4de7e05..9bcf81b 100644
12 --- a/hw/xfree86/modes/xf86Crtc.c
13 +++ b/hw/xfree86/modes/xf86Crtc.c
14 @@ -987,6 +987,15 @@ xf86DefaultScreenLimits (ScrnInfoPtr scrn, int *widthp, int *heightp,
15 if (crtc_height > height)
16 height = crtc_height;
17 }
18 +
19 + /* Make room for an external monitor if we have enough video ram */
20 + if (scrn->videoRam >= 65536)
21 + width += 1920;
22 + else if (scrn->videoRam >= 32768)
23 + width += 1280;
24 + else if (scrn->videoRam >= 16384)
25 + width += 1024;
26 +
27 if (config->maxWidth && width > config->maxWidth) width = config->maxWidth;
28 if (config->maxHeight && height > config->maxHeight) height = config->maxHeight;
29 if (config->minWidth && width < config->minWidth) width = config->minWidth;
30 --
31 1.6.0.1
32