Commit Graph

2 Commits (89ad793407e64762f27ddbebeceebc25d93f678b)

Author SHA1 Message Date
Ryan C. Gordon 7364ed016b Added a few debug printf() calls. 2014-05-28 01:27:27 -04:00
Ryan C. Gordon 98c03f391d Changed drag area API to a hit-testing API.
There were several good arguments for this: it's how Windows works with
 WM_NCHITTEST, SDL doesn't need to manage a list of rects, it allows more
 control over the regions (how do you use rects to cleanly surround a circular
 button?), the callback can be more optimized than a iterating a list of
 rects, and you don't have to send an updated list of rects whenever the
 window resizes or layout changes.
2014-05-28 01:22:47 -04:00