changeset 13:3feeb953d9ae

val -> var
author David Barts <n5jrn@me.com>
date Sat, 18 Jul 2020 14:23:02 -0700
parents 26a507e095ab
children bed255e4c2dc
files src/name/blackcap/imageprep/RotateDialog.kt
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/name/blackcap/imageprep/RotateDialog.kt	Sat Jul 18 12:04:05 2020 -0700
+++ b/src/name/blackcap/imageprep/RotateDialog.kt	Sat Jul 18 14:23:02 2020 -0700
@@ -45,12 +45,12 @@
     private val drawingPane = DrawingPane(initialImage)
 
     private class ImageWaiter: ImageObserver {
-        private var sem = Semaphore(0)
+        private val MASK = ImageObserver.ALLBITS or ImageObserver.ERROR or ImageObserver.ABORT
+        private val sem = Semaphore(0)
         @Volatile private var flags: Int? = null
-        private var MASK = ImageObserver.ALLBITS or ImageObserver.ERROR or ImageObserver.ABORT
 
         override fun imageUpdate(img: Image, infoflags: Int, x: Int, y: Int, width: Int, height: Int): Boolean {
-            if (infoflags and MASK != 0) {
+            if ((infoflags and MASK) != 0) {
                 flags = infoflags
                 sem.release()
                 return false