Revision: 3725
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3725&view=rev
Author:   hofman
Date:     2008-04-13 15:34:12 -0700 (Sun, 13 Apr 2008)

Log Message:
-----------
Clip font name to rect inside border.

Modified Paths:
--------------
    trunk/SKFontPicker.m

Modified: trunk/SKFontPicker.m
===================================================================
--- trunk/SKFontPicker.m        2008-04-13 22:03:27 UTC (rev 3724)
+++ trunk/SKFontPicker.m        2008-04-13 22:34:12 UTC (rev 3725)
@@ -172,9 +172,14 @@
     NSRectFill(rect);
 
     [NSGraphicsContext restoreGraphicsState];
+    [NSGraphicsContext saveGraphicsState];
     
+    [[NSBezierPath bezierPathWithRect:rect] addClip];
+    
     [[self cell] drawInteriorWithFrame:bounds inView:self];
     
+    [NSGraphicsContext restoreGraphicsState];
+    
     if ([self refusesFirstResponder] == NO && [NSApp isActive] && [[self 
window] isKeyWindow] && [[self window] firstResponder] == self) {
         [NSGraphicsContext saveGraphicsState];
         NSSetFocusRingStyle(NSFocusRingOnly);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to