#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Tue, 27 Mar 2018 13:28:58 +0200
changeset 8319 bdc89880bdd8
parent 8318 a3745ee87e94
child 8320 af8021f5dbf7
#DOCUMENTATION by cg class: Form changed: #magnify:by:smoothing:
Form.st
--- a/Form.st	Wed Mar 21 16:03:02 2018 +0100
+++ b/Form.st	Tue Mar 27 13:28:58 2018 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -896,8 +894,13 @@
     ^nil
 !
 
-magnify:aRectangle by:scale smoothing:smooth
-    ^ ((Image fromSubForm:aRectangle in:self) magnifiedBy:scale) asFormOn:device.
+magnify:aRectangle by:scale smoothing:smoothBoolean
+    "Squeak compatibility:
+     a little inefficient hack: convert to image, then magnify,
+     then convert back"
+
+    ^ ((Image fromSubForm:aRectangle in:self) 
+            magnifiedBy:scale smooth:smoothBoolean) asFormOn:device.
 !
 
 pixelAt:aPoint