From: Risto S. <ris...@gm...> - 2007-04-06 18:00:55
|
Hi, The following patch helped me solve my XDGA problem. It should be applied in mol-0.9.72 with 'patch -p0 -i mol-0.9.72-xdga.patch'. It's tested on a beige G3 with Ubuntu Dapper and xorg 7.0.0. It probably works with older releases of MOL, as well. I don't really know what is right and what is wrong: whether the XDGA mode numbering should begin from 0 or 1... Risto mol-0.9.72-xdga.patch: --- src/drivers/video/xdga.c.org 2004-03-21 03:24:34.000000000 +0200 +++ src/drivers/video/xdga.c 2007-04-06 19:36:50.000000000 +0300 @@ -251,7 +251,7 @@ skip = 0; printm(" %c Mode %d: \"%s\": %dx%d %2d (%dx%d) %.2f Hz %04x %d %d\n", - skip ? ' ' : '*', i, mm[i].name, + skip ? ' ' : '*', i+1, mm[i].name, mm[i].imageWidth, mm[i].imageHeight, mm[i].depth, mm[i].pixmapWidth, mm[i].pixmapHeight, mm[i].verticalRefresh, @@ -269,7 +269,7 @@ m[n].h = mm[i].viewportHeight; m[n].depth = mm[i].depth; m[n].refresh = (mm[i].verticalRefresh * 65536) + 0.5; - m[n].module_data = (void*)i; + m[n].module_data = (void*)(i+1); m[n].next = NULL; if( n>0 ) m[n-1].next = &m[n]; |