This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9788aa6  Fixes #1118
9788aa6 is described below

commit 9788aa6cb116af9b0c7ba1deb302613d3cb172c3
Author: Yishay Weiss <[email protected]>
AuthorDate: Tue Jun 15 21:55:36 2021 +0300

    Fixes #1118
---
 .../MXRoyale/src/main/royale/mx/display/Bitmap.as  | 75 +++++++++++-----------
 1 file changed, 38 insertions(+), 37 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/display/Bitmap.as 
b/frameworks/projects/MXRoyale/src/main/royale/mx/display/Bitmap.as
index 4cd1837..df60e66 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/display/Bitmap.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/display/Bitmap.as
@@ -22,53 +22,54 @@ package mx.display
        {
                import flash.display.DisplayObject;
                import flash.display.BitmapData;
-
-               
-               public class Bitmap extends flash.display.DisplayObject
-               {
-                       public function Bitmap(bitmapData:BitmapData = null, 
pixelSnapping:String = "auto", smoothing:Boolean = false)
-                       {
-                               super();
-                       }
-               }
        }
        COMPILE::JS
        {
                import mx.core.UIComponent;
                import org.apache.royale.display.BitmapData; 
                //import org.apache.royale.textLayout.dummy.BitmapData;
+       }
 
                
-               public class Bitmap extends mx.core.UIComponent
+       COMPILE::SWF
+       public class Bitmap extends flash.display.DisplayObject
+       {
+               public function Bitmap(bitmapData:BitmapData = null, 
pixelSnapping:String = "auto", smoothing:Boolean = false)
                {
-                       public function Bitmap(bitmapData:Object = null, 
pixelSnapping:String = "auto", smoothing:Boolean = false)
-                       {
-                               super();
-                       }
-                       private var     _smoothing : Boolean =  false;
-                       public function get smoothing():Boolean
-                       {
-                               return _smoothing;
-                       }
-                       public function set smoothing(value:Boolean):void
-                       {
-                               _smoothing = value;
-                       }
-                       
-                       private var     _bitmapData : BitmapData =  null;
-
-                       // not implemented
-                       public function get bitmapData():BitmapData
-                       {
-                               return _bitmapData;
-                       }
-                       
-                       public function set bitmapData(value:BitmapData):void
-                       {
-                               _bitmapData = value;
-                       }
-                       
+                       super();
                }
        }
+
        
+       COMPILE::JS
+       public class Bitmap extends mx.core.UIComponent
+       {
+               public function Bitmap(bitmapData:Object = null, 
pixelSnapping:String = "auto", smoothing:Boolean = false)
+               {
+                       super();
+               }
+               private var     _smoothing : Boolean =  false;
+               public function get smoothing():Boolean
+               {
+                       return _smoothing;
+               }
+               public function set smoothing(value:Boolean):void
+               {
+                       _smoothing = value;
+               }
+               
+               private var     _bitmapData : BitmapData =  null;
+
+               // not implemented
+               public function get bitmapData():BitmapData
+               {
+                       return _bitmapData;
+               }
+               
+               public function set bitmapData(value:BitmapData):void
+               {
+                       _bitmapData = value;
+               }
+               
+       }
 }

Reply via email to