remember that smooth mous

 BBS: Inland Empire Archive
Date: 03-29-93 (02:01)             Number: 300
From: ELI GOLDBERG                 Refer#: NONE
  To: RICH GELDREICH                Recvd: NO  
Subj: remember that smooth mous      Conf: (2) Quik_Bas
Hello Rich! Keep that great code coming....

I was looking at your smooth graphics mouse routines last night
and I have a simple way for you to make them a tad better.

Your cursor will distort certain characters just a tad when it moves
across them. This is from the "overscan" lines that the cursor bitmap
is stored in, in the set of C0 to DF. Of course if you use anything
outside that range (as you point out) there will be "gaps" in the
mouse cursor.

To fix that, all I did was allocate two sets of character sets and
as you read in each character that the mouse bitmap covers, I look
to see if it is in the C0 to DF range, and use the the "high" level
part of that bitmap (copied from an array). If another part is
outside C0-DF, I use the "low" set to prevent distortion.

Works like a champ. I'm sure you would have done it if you had not
moved on to something more interesting like those 3-d solids!

Now! Tell me how to keep the bitmap ONE COLOR at all times and I
will be very impressed. This might not be possible if I understand
the VGA graphics under text trick correctly.

--- GoldED 2.40
 * Origin: The Solution BBS: Pensacola, FL (904)478-2917 (1:3612/12)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET