diff options
author | Daniel Borca <dborca@users.sourceforge.net> | 2004-03-02 08:15:24 +0000 |
---|---|---|
committer | Daniel Borca <dborca@users.sourceforge.net> | 2004-03-02 08:15:24 +0000 |
commit | fa21787b52d85a7aeaf5de64a39e019f39fcfa07 (patch) | |
tree | 5465c5008210bef81266b91acc4988fcf01c33bf /src/mesa/drivers/dos | |
parent | 725a56f157506a0122912da9f8df92b275da5b98 (diff) |
workaround for crash-upon-exit in verbose mode
fxMesa now uses grQueryResolution
minor fixes to X11 and DOS drivers
Diffstat (limited to 'src/mesa/drivers/dos')
-rw-r--r-- | src/mesa/drivers/dos/dmesa.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/src/mesa/drivers/dos/dmesa.c b/src/mesa/drivers/dos/dmesa.c index 752f13e909..f6ff5eb50b 100644 --- a/src/mesa/drivers/dos/dmesa.c +++ b/src/mesa/drivers/dos/dmesa.c @@ -1360,44 +1360,7 @@ int DMesaGetIntegerv (GLenum pname, GLint *params) #ifndef FX return vl_get(VL_GET_VIDEO_MODES, params); #else - { - /* `vmode' struct must be sync'ed with `internal.h' (vl_mode) - * `vmode' list must be sync'ed with `fxapi.c' - * `hw >= 6' means Napalm and can do 32bit rendering - * TODO: we should take an envvar for `fxMesaSelectCurrentBoard' - */ - static struct { - int width, height; - int bpp; - } vmode[] = { - { 320, 200, 16 }, - { 320, 240, 16 }, - { 512, 384, 16 }, - { 640, 400, 16 }, - { 640, 480, 16 }, - { 800, 600, 16 }, - {1024, 768, 16 }, - - { 320, 200, 32 }, - { 320, 240, 32 }, - { 512, 384, 32 }, - { 640, 400, 32 }, - { 640, 480, 32 }, - { 800, 600, 32 }, - {1024, 768, 32 } - }; - int hw = fxMesaSelectCurrentBoard(0); - int i, n = sizeof(vmode) / sizeof(vmode[0]); - if (hw < 6) { - n /= 2; - } - if (params) { - for (i = 0; i < n; i++) { - params[i] = (GLint)(&vmode[i]); - } - } - return n; - } + return -1; /* TODO */ #endif case DMESA_GET_BUFFER_ADDR: #ifndef FX |