[fpc-pascal]VESA modes in fpc for win32

Jonas Maebe jonas at zeus.rug.ac.be
Thu Jan 31 13:22:29 CET 2002


On maandag, januari 28, 2002, at 07:22 , Victor V. Shuvalov wrote:

> Unfortunately it is. I downloaded dosw32104full (containing many things
> including docs) some 1.5 month ago. Maybe the online documentation is 
> more
> fresh --- I didn't check yet.

Really strange, the documentation in that package should already contain 
all the new mode handling stuff.

>> There are several reasons
>>
>> a) the win32 graph unit only supports 640x480x16 colors.
>
> OK, how do I use at least this mode?

graphdriver := d4bit;
graphmode := m640x480;

>> See the docs for more info. You can use the go32v2 version of the
>> compiler to create (Dos) programs that switch into VESA modes (using 
>> the
>> graph unit and the method described above),
>
> Surprisingly the method described above is NOT working, but 
> GraphDriver=10
> helps --- which looks like nonsence, isn't it?

Yes, because there is no graphdriver 10 available under windows...

> The problem with win32 and graph is that I can't use Crt in graphics 
> mode
> (you have to switch to text window and press keys there :-). FAQ 
> recommends
> WinCrt instead, but WinCrt is not working in text mode (ch:=keypressed
> causes the program to hang)! So there's no chance to use Crt procedures 
> and
> function both in text and graphics mode, which seems to be a big 
> problem.
> Is there any way to fix this problem?

I don't know. Maybe you could look at the fpctris sources (it's one of 
the demo's), I think it also uses both the graph and crt unit.


Jonas





More information about the fpc-pascal mailing list