🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #8023

Graphics drawing routines

#8023
From: 4225_5117
Date: Mon, 04 Mar 1991 16:08
29 lines
1875 bytes
    I'm looking for some suggestions regarding a programming problem we've run
up against here.  We are writing a program that does horizontal panning on the
graphics screen, so the only way we could get the speed we needed was to use
the horizontal pel panning register in conjunction with the start address
register of the graphics controller.  If there is another way to achieve the
same speed, please let me know, but for now I'll assume it's the only way.
    Now the problem I'm having is that I want to draw just off the side of
the screen that is about to come on so as to have the appearance of continuous
data.  I've set the screen width to 82 bytes wide, and I know that is do
properly as the BIOS draw routine works OK (but it is, of course, FAR too
slow).  But the MicroSoft C graphics library seem to assume that the screen is
only 80 bytes wide and draw everything in the wrong place.  Even the BIOS
routines fail to draw in the proper place if the screen start address is not at
the start of an even page.

    So my question is, has anyone else had experience doing this sort of thing,
and is there anyway to either get the MicroSoft routines to work, or substitute
another graphics library that will do what we want.  If not, it looks like
we'll have to write our own drawing routines, which we obviously would rather
not do.

     Any sugeestions would be appreciated.  Please reply by email but if anyone
else wants to hear about my results, I will post a summary later.  Thanks in
advance.


     Mike Hackett     (University of Western Ontario)
     4225_5117@uwovax.uwo.ca
Technical Details
Message-ID: <1991Mar4.110829.8732@uwovax.uwo.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!ria!uwovax.uwo.ca!4225_5117

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!ria!uwovax.uwo.ca!4225_5117
From: 4225_5117@uwovax.uwo.ca
Newsgroups: comp.sys.ibm.pc.misc
Subject: Graphics drawing routines
Message-ID: <1991Mar4.110829.8732@uwovax.uwo.ca>
Date: 4 Mar 91 16:08:28 GMT
Lines: 29