delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/01/26/17:37:58

Xref: news2.mv.net comp.os.msdos.djgpp:597
From: wwkin AT cs DOT ust DOT hk (Wong Wing Kin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Matrox Millenium & VESADRV
Date: 25 Jan 1996 16:55:17 GMT
Organization: The Hong Kong University of Science and Technology
Lines: 30
Message-ID: <4e8cll$joa@news.ust.hk>
References: <30FE6A5D DOT 41C67EA6 AT sunba4 DOT ba DOT infn DOT it>
NNTP-Posting-Host: cssu147.cs.ust.hk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

giuseppe (giuseppe AT sunba4 DOT ba DOT infn DOT it) wrote:
: I used VESADRV coming within LIBGRX package. It works fine using my old
: VGA card. Now I have a Matrox Millenium MGA card, a VESA 2 
: compliant card. It works well in all resolution and colour numbers. 

: Only in 800 x 600 x 256 it *NOT* works! 

: Can anyone help me?

I have encounted the same problem before. 
It should be the bug of LIBGRX.  The lineoffset of Millennium 800x600
256 mode is 960 instead of 800.  LIBGRX messed up with it.

You may try the following fix for Millennium 800x600 mode:

        GrSaveContext(&w);
        if (w.gc_lineoffset == 800) {
                w.gc_lineoffset = 960;
                GrSetContext(&w);
        }

WWK
--
||=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=/
|| Wong Wing Kin  ¶À¥Ã«Ø   (M.Phil.CS)   |    wwkin AT cs DOT ust DOT hk             /
||   Department of  Computer Science   |    wwkin AT uxmail DOT ust DOT hk          /
||     The Hong Kong University of   |    P.O.Box 80044, Cheung Sha Wan  /
||       Science and Technology     |  Post Office, Hong Kong          /
||=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-/
||

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019