#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Wed, 20 Jul 2016 11:28:13 +0200
changeset 7424 79d2310a0c43
parent 7423 3be657fc460f
child 7425 461afe8907c4
#REFACTORING by stefan class: Depth8Image changed: #anyImageAsPseudoFormOn: use #blackColor and #whiteColor
Depth8Image.st
--- a/Depth8Image.st	Wed Jul 20 11:26:02 2016 +0200
+++ b/Depth8Image.st	Wed Jul 20 11:28:13 2016 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -496,9 +498,9 @@
                     "/ color := colorMap at:mapIndex.
                     color := self colorFromValue:aColorIndex.
                     color brightness > 0.4 ifTrue:[
-                        color := Color white.
+                        color := aDevice whiteColor.
                     ] ifFalse:[
-                        color := Color black.
+                        color := aDevice blackColor.
                     ].
                     imgMap at:mapIndex put:(color onDevice:aDevice).
                 ].