Groups > Borland > Turbo Pascal > Re: 1024 X 768 mode in XP cmd.exe shell




1024 X 768 mode in XP cmd.exe shell

1024 X 768 mode in XP cmd.exe shell
31 Jul 2007 10:02:03 -0700
I am using Version BP 7.0 and creating a real mode application.
I am trying to invoke the 1024 X 768 graphics mode with the svga.bgi file via
the following code in Windows XP.

GraphMode:=9; { 1024 X 768 X 16 }
GraphDriver:=InstallUserDriver('SVGA',NIL);
InitGraph(GraphDriver,GraphMode,'');

  I get a graphics error 245 returned from GraphResult;
Is there any way I can achieve this 1024 X 768 X 16 mode in XP and Vista.

Thanks for any ideas
Kevin Young
Post Reply
Re: 1024 X 768 mode in XP cmd.exe shell
Wed, 01 Aug 2007 08:57:25 +020
Hi Kevin,
did you use the orginal svga.bgi driver of borland?
A help maybe is to try to detect valid values of your driver.
(Use DetectGraph)
It could be that your graphic card does not support this special mode 
via windows XP environment.

Give a differend BGi driver a try. I usally use a free VESA-Driver
for best compability. 
(http://dec.bournemouth.ac.uk/staff/awatson/graphics/graphics.html)

A third is to switch the excutable for XP in different compabilty mode.
(in explorer, right click on exe-file, on the secound tab)

Post Reply
about | contact