Revision: 4074
http://skim-app.svn.sourceforge.net/skim-app/?rev=4074&view=rev
Author: hofman
Date: 2008-06-26 12:01:47 -0700 (Thu, 26 Jun 2008)
Log Message:
-----------
Workaround for weird drawing artifacts on Tiger. The image drawn right after
any image that's named ToolbarBack has an extra gray triangle.
Modified Paths:
--------------
trunk/NSImage_SKExtensions.m
Modified: trunk/NSImage_SKExtensions.m
===================================================================
--- trunk/NSImage_SKExtensions.m 2008-06-26 11:31:23 UTC (rev 4073)
+++ trunk/NSImage_SKExtensions.m 2008-06-26 19:01:47 UTC (rev 4074)
@@ -417,6 +417,14 @@
[toolbarBackImage unlockFocus];
[toolbarBackImage setName:SKImageNameToolbarBack];
+ if (isTiger) {
+ // the image drawn right after ToolbarBack on Tiger has drawing
artifacts, a gray upward pointing arrow at the bottom, so we make it a dummy
image
+ NSImage *dummy = [[NSImage alloc] initWithSize:NSMakeSize(27.0, 13.0)];
+ [dummy lockFocus];
+ [dummy unlockFocus];
+ // a release here won't work to fix the bug
+ }
+
toolbarForwardImage = [[NSImage alloc] initWithSize:NSMakeSize(27.0,
13.0)];
[toolbarForwardImage lockFocus];
[NSGraphicsContext saveGraphicsState];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit