PDA

View Full Version : SVGA 16M



Xladhenian
16-04-2007, 07:31 PM
I found on the Internet some BGI drivers for VGA and SVGA which support different resolutions (320x200,640x350,640x400,640x480,800x600,1024x768, 1280x1024) and different palette types (16, 256, 32768, 65536 or 16777216 colors).
All BGI drivers work (I tried on Windows 98/XP and DOS), except for SVGA 16M (the same problem appears on the 3 Operating Systems).
The program (similar to BGIDEMO) which uses SVGA 16M does not return an error, but it renders the screen split into 4 and with different colors.
It is possible that Graph Unit (the one in Borland/Turbo Pascal 7.0) is not compatible with SVGA 16M, because all variables, functions, procedures are/use the Integer Type and not LongInt.
If it is not compatible, where I can find a compatible one?
How could I make SVGA 16M run correctly or find a working one?
If I have a working SVGA 16M, I could make great Graphics Programs in DOS (with PASCAL and C++) and even 2D and 3D games, and the rendering will be similar to Windows.
If you wish, you can download the archive ftp://garbo.uwasa.fi/pc/bgidriv/svgabg55.zip . The archive contains the BGI drivers and the programs in PASCAL and C++ which I found. If the two programs do not work, you can recompile them. The program written in PASCAL is recommended to be recompiled with the rebuilt CRT Unit which can be downloaded from ftp://garbo.uwasa.fi/pc/turbopas/crt.zip .

dmantione
16-04-2007, 07:55 PM
I have my doubts about making TP do things it is not designed for. The Free Pascal graph unit can handle 16M colours. Unless you have a specific reason to need 16-bit software, it better to leave TP as it is.

To make great games in Dos, use the PTC library shipped with Free Pascal.