#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Thu, 31 Aug 2017 16:40:45 +0200
changeset 8143 cdd9fdf39d88
parent 8142 5c9e388b60a3
child 8144 abf53adf9239
#DOCUMENTATION by cg class: DeviceGraphicsContext comment/format in: #displayDeviceFormWithAlpha:x:y:
DeviceGraphicsContext.st
--- a/DeviceGraphicsContext.st	Thu Aug 31 16:39:54 2017 +0200
+++ b/DeviceGraphicsContext.st	Thu Aug 31 16:40:45 2017 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1992 by Claus Gittinger
 	      All Rights Reserved
@@ -2295,7 +2297,7 @@
 displayDeviceFormWithAlpha:anImage x:x y:y
     "draw a form or image non opaque;
      The current paint settings are ignored and the image is drawn as-is;
-     however, the alpha channel is teken care of.
+     however, the alpha channel is taken care of.
      This is a (slow) fallback helper for displays which do not support alpha blending"
 
     |bytesPerLine orgDstData dstData imgData info w h pX pY bppDrawable 
@@ -2409,13 +2411,9 @@
         imgRowIndex := 1.
 
         (info at:#byteOrder) == #lsbFirst ifTrue:[
-            oR := 0.
-            oG := 1.
-            oB := 2.
+            oR := 0. oG := 1. oB := 2.
         ] ifFalse:[
-            oR := 2.
-            oG := 1.
-            oB := 0.
+            oR := 2. oG := 1. oB := 0.
         ].
 
         "/ draw "by hand" here