diff options
author | Adam Jackson <ajax@benzedrine.nwnk.net> | 2007-03-28 11:14:24 -0400 |
---|---|---|
committer | Adam Jackson <ajax@benzedrine.nwnk.net> | 2007-03-28 11:53:20 -0400 |
commit | 1246f724bfdd44b49091516bf909ecf97c9b82db (patch) | |
tree | d0e63db6e3c2f521cb4115be7762d3670127a620 | |
parent | 834bdfc2503f64d8f3bff088dc5eaf8f52f828f5 (diff) |
Default mode on G200SE of 1024x768 @ 16bpp.
The poor thing has so little VRAM that you can't do any bigger than 640x480
at 32bpp, so in the interest of having a reasonable screen size...
-rw-r--r-- | src/mga_driver.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c index 3d172de..42b428d 100644 --- a/src/mga_driver.c +++ b/src/mga_driver.c @@ -1427,6 +1427,9 @@ MGAPreInit(ScrnInfoPtr pScrn, int flags) if (pMga->SecondCrtc) flags24 = Support32bppFb; + if (pMga->is_G200SE) + pScrn->confScreen->defaultdepth = 16; + if (!xf86SetDepthBpp(pScrn, 0, 0, 0, flags24)) { return FALSE; } else { @@ -1989,6 +1992,21 @@ MGAPreInit(ScrnInfoPtr pScrn, int flags) pScrn->monitor->DDC = MGAdoDDC(pScrn); #endif /* !__powerpc__ */ + if (!pScrn->monitor->DDC && pMga->is_G200SE) { + /* Jam in ranges big enough for 1024x768 */ + if (!pScrn->monitor->nHsync) { + pScrn->monitor->nHsync = 1; + pScrn->monitor->hsync[0].lo = 31.5; + pScrn->monitor->hsync[0].hi = 48.0; + } + if (!pScrn->monitor->nVrefresh) { + pScrn->monitor->nVrefresh = 1; + pScrn->monitor->vrefresh[0].lo = 56.0; + pScrn->monitor->vrefresh[0].hi = 75.0; + } + } + + /* * If the driver can do gamma correction, it should call xf86SetGamma() * here. |