Bug 18487 - BitmapData.rectangle has wrong height
Summary: BitmapData.rectangle has wrong height
Status: RESOLVED FIXED
Alias: None
Product: swfdec
Classification: Unclassified
Component: library (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: swfdec ml
QA Contact: swfdec ml
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-11 13:04 UTC by MenTaLguY
Modified: 2008-11-13 01:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
A .swf compiled from the above example code (3.18 KB, application/x-shockwave-flash)
2008-11-11 13:36 UTC, MenTaLguY
Details

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.