XftFontDescription.st
branchjv
changeset 7766 ba07a358cb4a
parent 7723 620e91f9b082
child 7772 a59648e60593
--- a/XftFontDescription.st	Sun Dec 18 12:12:59 2016 +0000
+++ b/XftFontDescription.st	Sun Dec 18 21:57:26 2016 +0000
@@ -464,11 +464,10 @@
      clipOrg clipCorn clipRect clipX clipY clipW clipH clipPnt
      fg fgR fgG fgB fgA fgPixel bg bgR bgG bgB bgA bgPixel
      drawX drawY drawPnt displayId screen drawableId error stringLen drawId drawIdIsShared
-     newXftDrawId newDrawableAssociation pixmapDepth|
+     newXftDrawId newDrawableAssociation |
 
-    aGC isPixmap ifTrue:[
-        pixmapDepth := aGC depth.
-        pixmapDepth == 1 ifTrue:[
+    aGC isPixmap ifTrue:[        
+        aGC depth ifTrue:[
             "/ Using XFT font to draw in bitmap is not allowed. In theory it could
             "/ work if XFT would just turn gray into either black or white. But XFT
             "/ doesn't do it and simply draw nothing without failing in any way. 
@@ -669,10 +668,6 @@
         goto err;
     }
 
-    if (pixmapDepth != nil) {
-        XftDrawDestroy(__sharedDrawId);
-    }
-
     RETURN(self);
 
 #endif