|
From: Joe E. <jen...@fl...> - 2005-03-06 16:22:23
|
[Cc: tkt...@li... ] On tcl-mac, Mats Bengtsson wrote: > > I've put a patch for the tile project at: > http://sourceforge.net/tracker/index.php?func=detail&aid=1157739&group_id=114 > 64&atid=311464 > > This was supposed to be a fix for the pyjamas stripe alignment glitches > on 10.2 but doesn't work. This is either due to an Apple bug or > me misunderstanding something fundamental here: > * Apple docs says: > * "ApplyThemeBackground aligns patterns based on the rectangle passed in > the bounds parameter. This > * is in contrast to the function SetThemeBackground (page 78), which alig > ns patterns based on the > * origin of the current port." > */ > > but this doesn't work like this. The pattern offset is always the same > independent of the top of rectangle. > > Anyone has any ideas... The tile widgets draw everything on a pixmap, (an "offscreen graphics world" in QuickDraw terminology) then blit the pixmap contents to the screen when finished. So the origin of the Drawable passed to an element *Draw() routine will always be the origin of the widget, not the top-level window, and the pinstripes won't always line up. I don't have any good ideas how to fix this. --Joe English jen...@fl... |