Bug 18487

Summary: BitmapData.rectangle has wrong height
Product: swfdec Reporter: MenTaLguY <mental>
Component: libraryAssignee: swfdec ml <swfdec>
Status: RESOLVED FIXED QA Contact: swfdec ml <swfdec>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: A .swf compiled from the above example code

Description MenTaLguY 2008-11-11 13:04:40 UTC
BitmapData.rectangle.height is given the wrong value (the width instead of the height).  The following haxe program demonstrates the problem:

 import flash.display.BitmapData;

 class Main {
     public static function main() {
         var b : BitmapData = new BitmapData(50, 60);
         trace("width = " + Std.string(b.width));
         trace("height = " + Std.string(b.height));
         trace("rectangle = " + Std.string(b.rectangle));
     }
 }

The expected output is:

 Main.hx:6: width = 50
 Main.hx:7: height = 60
 Main.hx:8: rectangle = (x=0, y=0, w=50, h=60)

The actual output with swfdec is:

 Main.hx:6: width = 50
 Main.hx:7: height = 60
 Main.hx:8: rectangle = (x=0, y=0, w=50, h=50)
Comment 1 MenTaLguY 2008-11-11 13:36:31 UTC
Created attachment 20229 [details]
A .swf compiled from the above example code
Comment 2 Benjamin Otte 2008-11-13 01:21:15 UTC
I had actually fixec it in master, but not in 0.8. Now it's fixed there, too.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.