Article View: comp.os.msdos.programmer
Article #3434graphics
From: gord armstrong
Date: Tue, 29 Sep 1992 23:17
Date: Tue, 29 Sep 1992 23:17
21 lines
1303 bytes
1303 bytes
Thanx for the responses rx from my previous questions. More ??? on graphics (lowly CGA) ... to write to the graphics buffer I use VioGetPhysBuf to get the selector and proceed to write my graphic routines. If I'm, let's say, drawing boxes to the CGA screen and switch tasks, I get a 'Protection Violation' error. To prevent this error I use VioScrLock and VioScrUnLock. Unfortunatly, when I switch tasks the graphic updates stop. It's like task switching instead of multitasking?? Do I need a thread to create a virtual buffer and write to this buffer when in background mode so that when I return to my graphics screen I write the virtual buffer to graphic screen? All help appreciated. Thanx. --------------------------------------------------------------------- gord.armstrong@canrem.com -- Canada Remote Systems - Toronto, Ontario World's Largest PCBOARD System - 416-629-7000/629-7044
Technical Details
Message-ID:
<199229.4879.13532@dosgate>Path:
arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!unixbox!dosgate!dosgate![gord.armstrong@canrem.com]Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!uunet.ca!unixbox!dosgate!dosgate![gord.armstrong@canrem.com] From: "gord armstrong" <gord.armstrong@canrem.com> Subject: graphics Message-ID: <199229.4879.13532@dosgate> Reply-To: "gord armstrong" <gord.armstrong@canrem.com> Organization: Canada Remote Systems Distribution: comp Date: 29 Sep 92 18:17:52 EST Lines: 21