Board index » delphi » ClrScr BUG.

ClrScr BUG.

i switched to 640x480 with svga256.bgi and tried to clear screen with
ClrScr... Result was allmost right... but bottom of the screen did not
clear... about 8 centimeters remained what it was before ClrScr... what is
wrong?????????

mAze..

--
"I hate to advocate {*word*110}, {*word*63}, {*word*267}, or insanity to anyone, but
they've always worked for me."
Hunter S. Thompson.

 

Re:ClrScr BUG.


Quote
Maze wrote:

> i switched to 640x480 with svga256.bgi and tried to clear screen with
> ClrScr... Result was allmost right... but bottom of the screen did not
> clear... about 8 centimeters remained what it was before ClrScr... what is
> wrong?????????

ClrScr is for TextMode!
ClearDevice/ClearViewPort should do.

Wolf

Re:ClrScr BUG.


In article <95mqis$3f...@news.kolumbus.fi>,

Quote
Maze <janne.kro...@kolumbus.fi> wrote:
>i switched to 640x480 with svga256.bgi and tried to clear screen with
>ClrScr... Result was allmost right... but bottom of the screen did not
>clear... about 8 centimeters remained what it was before ClrScr... what is
>wrong?????????

The VGA graphics screen is 80x30 characters while the text screen is 80x25.
You need to modify the windmax. WindMax:=79+29*256; (or inc(windmax,5*256))
The Window() routine in CRT is fixed to max 80x25 so it cannot be used.

Osmo

Other Threads