Mail Archives: djgpp/1998/09/06/20:47:54
Are you really sur that you need all that?
I'm just setting the mode, and as it is a graphic mode, well
there wont be a text mode...
And this leftshifting?
The banks are 0,1,2,3 etc, as many as you need.
BTW, I had some problem with those VESA 1.2 modes because they are Not
always compatible with VESA 2.0 One thing that worked for me was to set
the bit in the for the lineframe buffer(why it works, I have no idéa,
but it does, using banks). So mode 0x100 will be 0x4100 etc.
The best thing offcourse, to make the code work on well almost all cards
is to scan the card for the desired graphic mode.
Hope I got the Question right and so.
Ludvig
Ps. to plot a pixel: (in 640xNNN in 256color mode)
bank=(x+y*640)>>16
offset=(x+y*640)-bank<<16
set bank to 'bank' and
put the colorvalue at 0xA0000+offset
:)
- Raw text -