|
From: Jim I. <ji...@ap...> - 2005-03-10 16:58:44
|
Have you played around with whether the double buffering is necessary? The Aqua Tk code does this sometimes, but that is more legacy and lack of time to see what we could rip out. Mac OS X already double buffers all drawing, so if you are also drawing into a pixmap, everything ends up getting drawn three times. Jim On Mar 6, 2005, at 8:22 AM, Joe English wrote: > > > [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... > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Tcl-mac mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-mac |