Forum Navigation
You need to log in to create posts and topics.

Re: Direct to screen drawing

Posted by: dereksmi <dereksmi@...>

> Alright, I've been playing around with drawing to the screen (not a window,
> the whole screen) and I've got a question. I don't have a problem getting
> stuff to the screen, my problem is getting the system to update the rect.
> I tried CALL INVALRECT(rect) but that didn't work (not that I expected it
> to). I can't think of anything that would tell the system to update
> off-hand and I couldn't find anything in the manuals.

I've been doing this for a while. You have to update the windows with
InvalRect and the desktop and assorted other areas with CALL PAINTBEHIND
and CALL DRAWMENUBAR.

Just out of curiousity, are you able to draw to video memory in 16 bit
mode? I can't seem to puzzle that out, but 8 works fine for me anyway.

I have a code snippet to update the whole desktop and menubar, but windows
must be done normally.

-Derek
----------------
www2.hawaii.edu/~dereksmi
----------------