So I subtracted 30 from the value to get it to nicely scale into the 24 pixels that are available.

So what happens if the magic value goes past the screen boundaries? Page fault?

Perhaps you should trim the values before drawing them.
_________________________
Tony Fabris