Title: [commits] (jeffrey) [11420] - Turn off anti-aliasing for swatches on the Mac
Revision
11420
Author
jeffrey
Date
2006-08-15 11:55:50 -0700 (Tue, 15 Aug 2006)

Log Message

- Turn off anti-aliasing for swatches on the Mac

Modified Paths

Diff

Modified: trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py (11419 => 11420)

--- trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	2006-08-15 17:53:00 UTC (rev 11419)
+++ trunk/chandler/parcels/osaf/framework/blocks/calendar/CalendarCanvas.py	2006-08-15 18:55:50 UTC (rev 11420)
@@ -621,7 +621,10 @@
             delta = SWATCH_HEIGHT_VECTOR + vector([0, SWATCH_SEPARATION])
         else:
             delta = SWATCH_WIDTH_VECTOR  + vector([SWATCH_SEPARATION, 0])
-        
+
+        if '__WXMAC__' in wx.PlatformInfo:
+            dc.SetAntiAliasing(False)
+
         count = 0
         for coll in reversed([i for i in sidebarCollections if 
                               self.item in i and i not in 
@@ -639,6 +642,10 @@
 
                 dc.DrawRectangle(*swatchTL.join(swatchBR - swatchTL))
                 count += 1
+                
+        if '__WXMAC__' in wx.PlatformInfo:
+            dc.SetAntiAliasing(True)
+
         return count
 
     def DrawEventRectangle(self, dc, rect, brush,




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to