Posted By: wraggster
Ant512 has updated his DS windowing system
New stuff:
- Fixed width/height inaccuracies (I wasn’t quite converting from (x1,y1) (x2,y2) to (x,y) (width,height) properly)
- Tidied up border drawing again (related to the width/height thing)
- Added intelligent gadget erasing
- Screen/window borders are now gadgets (so they automatically get redrawn as necessary when they become visible)
- Almost all gadgets now have a draw function that clips to a supplied rectangle’s dimensions
- Swapped the dull black rectangle in the SuperBitmap demo for a picture of many Marios (shows off the concept a bit better)
- The Pong demo now uses the SuperBitmap class as its canvas
The intelligent gadget erasing was probably the most complex bit of the system to implement, so I'm glad it's done. There's a (mostly) full description of the technique spread over a few posts on my blog, but it basically involves just redrawing any rectangles of the screen that are changed when a window moves. Screen redraws are much faster now, and the screen no longer flickers when a window moves.
Download Here and Give Feedback Via Comments