#TUNING by cg
class: TextView
changed: #clearMarginOfVisibleLine:with:
draw by sending messages to gc instead of self.
(new GC structure)
--- a/TextView.st Tue Jan 24 23:17:27 2017 +0100
+++ b/TextView.st Tue Jan 24 23:24:05 2017 +0100
@@ -3135,11 +3135,9 @@
(leftMargin ~~ 0) ifTrue:[
viewOrigin x <= margin ifTrue:[
- self paint:color.
- self fillRectangleX:margin-viewOrigin x
- y:(self yOfVisibleLine:visLine)- (lineSpacing//2)
- width:leftMargin
- height:fontHeight
+ gc paint:color.
+ gc fillRectangleX:(margin-viewOrigin) x y:(self yOfVisibleLine:visLine)- (lineSpacing//2)
+ width:leftMargin height:fontHeight
]
]