Mail Archives: djgpp/1996/01/26/17:37:58
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 -