On Wed, Oct 22, 2008 at 5:59 AM, Mark Marshall <[EMAIL PROTECTED]> wrote: > Hi. > > Just a short message to say that I've checked in a few HQ assembler > routines. Nothing too controversial I think, just a divide routine (that > we'll probably never use), draw_glyph that was discussed before, and > draw_cursor, that can be used to draw the cursor over a character.
Very nice. I agree about the divide, but the others are of immediate use. > > I'll post my bochs C plugin soon, and that will explain a little better as > to how draw_cursor could be used. The text mode cursor seem to be a real > pain to get right. It looks like the best way to do it is to keep track of > the current location in the loops within convert_text_to_pixels and when we > get to the cursor location to draw it then. > > To draw it as a separate step after the screen has been updated would > involve re-reading the attribute at that location. Yes, and also, it would look ugly. Say we manage to refresh at only 10Hz. The cursor would look all flickery, and that would vary depending on where on the screen it was. It's best to draw the cursor right after you've just drawn the glyph. If we have room in the ROM, we could have a "draw glyph" routine and also a "draw glyph with cursor" routine. In fact, speed isn't an issue here, so it should come down to whichever combination is smaller. -- Timothy Normand Miller http://www.cse.ohio-state.edu/~millerti Open Graphics Project _______________________________________________ Open-graphics mailing list [email protected] http://lists.duskglow.com/mailman/listinfo/open-graphics List service provided by Duskglow Consulting, LLC (www.duskglow.com)
