|
From: Petr V. <VAN...@vc...> - 2000-09-01 15:21:18
|
On 1 Sep 00 at 9:22, James Simmons wrote:
> > > What I mean is read the values from the vga hardware instead of from
> > > screeninfo which is provided by the firmware.
> >
> > If you want to support only standard modes (text, cfb8, vgaplanes,
> > vga8planes), it is easy. But there is couple of more or less nonstandard
> > modes too. 2 (1plane) or 4-color (2planes) modes, alphanumeric mode with
> > character generator disabled (gives you `spectrum like' attribute + 8pixels).
> > What to do with them? Let them fall through and report something similar
> > for them?
>
> Wow. I never even seen any spectrum modes in any books. Where did you
> learn about it?
It must work that way... I was asking myself why there are two alphanumeric-
-graphics switches. One says whether pass data through character generator,
second says whether it is data+attr, or 4plane data...
Another solution is using documented interface and simple create 1 line
tall font with 1:1 mapping (0->0, 1->1,... 255->255).
> > If you are talking only about recognition of currently used videomode
> > at startup, it should be possible, and possibly trivial. I have
> > (in mgadump) code which adds `correct' constants and sums correct
> > bits together to get all picture sizes... Should I port that code
> > to Linux and send it to you?
>
> Pretty much I'm talking about recongnition of currently used videomode but
> it would also be nice to support other "non-standard modes". I would like
> to see your code :-)
OK, I'll port it during weekend.
Petr
|