David Wendt
6729c31623
avm2: Stub all `flash.net.NetStream` methods and related classes.
2023-03-25 15:30:02 -06:00
David Wendt
35ebdd5e97
avm2: Add stub impl of `NetStream` class & object type
2023-03-25 15:30:02 -06:00
David Wendt
ca2f5257f3
avm1: Stub implementation of the NetStream class that allows us to create streams.
2023-03-25 15:30:02 -06:00
David Wendt
38ed0dada4
core: Stub implementation of NetStream loading.
...
The actual use cases for `NetStream` almost certainly require streaming download but I'm not ready to implement that just yet.
2023-03-25 15:30:02 -06:00
David Wendt
db7ff77c4e
core: Add a stub implementation of `NetStream` videos.
2023-03-25 15:30:02 -06:00
Gleb Piskunov
2cb32e88df
avm2: Fix bad Graphics.drawRoundRectComplex() stub ( #10368 )
...
Co-authored-by: Gleb Piskunov <emgfc@ya.ru>
2023-03-25 18:30:18 +00:00
relrelb
7cdac78321
chore: Remove `static_assertions` dependency
...
`static_assertions` seems unmaintained, and anyway `assert!()` is
usable in `const` contexts since Rust 1.57.0:
https://blog.rust-lang.org/2021/12/02/Rust-1.57.0.html#panic-in-const-contexts
So simply use the suggested method instead.
Also the `rustversion` dependency is no longer needed because
https://github.com/rust-lang/rust/pull/94075 already landed in stable.
2023-03-25 15:14:36 +03:00
Mike Welsh
e1b24712cf
avm2: Throw AVM error on calling undefined function
2023-03-24 18:21:32 -07:00
Nathan Adams
eb44cc5395
render: Made ShapeHandle an Arc of an internal, droppable mesh
2023-03-23 01:44:27 -07:00
Nathan Adams
cc8ac4fde1
render: Remove RenderBackend::replace_shape
2023-03-23 01:44:27 -07:00
Toad06
ab71370cb7
avm1: Minimal implementation of `XML.getBytesTotal` and `XML.getBytesLoaded`
2023-03-22 17:51:42 -07:00
Mike Welsh
123f9e088c
avm2: Fix null parameter error message
2023-03-22 17:13:36 -07:00
EmperorBale
b2c79f9ea2
avm2: Make `resolve_parameters` throw an AVM error
2023-03-22 16:35:48 -07:00
Adrian Wielgosik
d77cf83e07
avm2: Fix si8/si16 opcodes
2023-03-22 22:55:43 +01:00
EmperorBale
fe54fb15f7
avm2: Show AS3 stack traces when logging level is `INFO`
2023-03-22 14:29:42 -07:00
EmperorBale
a63ee977fa
avm2: Reduce size of `CallNode` from 56 bytes to 24
2023-03-22 14:29:42 -07:00
Mike Welsh
1d12fc6169
render: Fix types depending on `tessellator` feature
2023-03-22 20:30:39 +01:00
Marty_SVK
de44c5494e
avm2: Stub Mouse.registerCursor and Mouse.unregisterCursor
2023-03-22 20:15:53 +01:00
Lord-McSweeney
98c19cc199
avm2: Stub NetConnection.close
2023-03-21 23:47:03 -07:00
yoganlava
2dee8338c8
avm2: Fix double borrow when setting local XMLList property
2023-03-21 19:21:18 -07:00
Nathan Adams
edbdf224ae
avm2: Skip BOM when reading utf8 from ByteArrays
2023-03-21 12:20:43 +01:00
Nathan Adams
bd6c3536e1
core: Fix add with overflow in BitmapData::copy_channel
2023-03-20 05:52:27 +01:00
Nathan Adams
a9ed47407d
core: Replaced all BitmapData::get_pixel_raw().unwrap() with get_pixel32_raw()
2023-03-20 05:52:27 +01:00
Nathan Adams
860a34d6e6
core: Use get_pixel32_raw in BitmapData::color_transform
2023-03-20 05:52:27 +01:00
Nathan Adams
885a7a22ca
core: Made BitmapData::get_pixel32 take u32 and use raw access
2023-03-20 05:52:27 +01:00
Nathan Adams
dc1380ef8b
core: Made BitmapData::hit_test_point use get_pixel32_raw
2023-03-20 05:52:27 +01:00
Nathan Adams
50238f2600
core: Made BitmapData::get_pixel take u32 and use raw access
2023-03-20 05:52:27 +01:00
Nathan Adams
4bd1a5b9f8
core: Remove BitmapData::set_transparency, it can only be set at creation
2023-03-20 05:52:27 +01:00
Nathan Adams
483afc4f9a
core: Made BitmapData::set_pixel32 use set_pixel32_raw
2023-03-20 05:52:27 +01:00
Nathan Adams
2e487b0661
core: Made BitmapData::set_pixel use set_pixel32_raw
2023-03-20 05:52:27 +01:00
Nathan Adams
ec0434a2bb
core: Optimized BitmapData::copy_channel
2023-03-20 05:52:27 +01:00
Nathan Adams
48cebdbbc0
core: Make BitmapData::fill_rect use set_pixel32_raw
2023-03-20 05:52:27 +01:00
Nathan Adams
69721c06a8
core: Make BitmapData::set_pixel32_raw inline
2023-03-20 05:52:27 +01:00
Nathan Adams
aa17ef695c
core: Remove set_cpu_dirty from BitmapData::set_pixel32_raw
2023-03-20 05:52:27 +01:00
Toad06
e2415be734
core: Store correct data for loaded images
2023-03-20 01:36:04 +01:00
Huw Pritchard
645ff76bcd
avm2: Add 11 AS3 classes ( #10003 )
2023-03-20 00:19:31 +00:00
AllinolCP
19b38da394
avm2: implement XML.parent()
2023-03-19 16:06:01 -07:00
Mike Welsh
3f7ea0b07f
avm2: Implement `updateAfterEvent`
...
Implement `updateAfterEvent` for `MouseEvent`, `TimerEvent` and
`TouchEvent`.
2023-03-19 14:39:17 -07:00
Dejan Varmedja
fca4bfde25
avm2: Add AVM2 keyboard constants ( close #10248 )
2023-03-19 12:16:31 +01:00
Mike Welsh
2d6d8ea0f4
core: Fix BitmapData.colorTransform
...
* Pixels with 0 alpha are not affected by color transforms.
* Color channels should be clamped to the 0-255 range.
* A color transform with only an alpha multiplier of >1 has no
effect.
2023-03-19 09:59:13 +01:00
Lord-McSweeney
c48dfb4a72
Fix ordering of flash.xml classes.
2023-03-19 09:44:17 +01:00
Lord-McSweeney
acc05f377f
avm2: Add XMLDocument to globals
2023-03-19 09:44:17 +01:00
Lord-McSweeney
8ce16901ee
avm2: Stub flash.xml.XMLDocument
2023-03-19 09:44:17 +01:00
Lord-McSweeney
6b2dcad7f3
avm2: Implement flash.xml.XMLNode
2023-03-19 09:44:17 +01:00
Lord-McSweeney
16c2317455
avm2: Implement flash.xml.XMLNodeType
2023-03-19 09:44:17 +01:00
Nathan Adams
b5cf5bc707
avm2: Fix comment for dispatch_event
2023-03-19 09:15:42 +01:00
Nathan Adams
e94861a8ad
avm2: Convert errors to error messages at root level
2023-03-19 09:15:42 +01:00
Nathan Adams
8b5f6c3691
core: Log when an error is encountered perfoming avm2 callbacks
2023-03-19 09:15:42 +01:00
Nathan Adams
b7c061a7a2
avm2: Implement LocalConnection.domain getter
2023-03-19 09:05:00 +01:00
Nathan Adams
ea424f3d1e
avm2: Fix panic when constructing custom BitmapData from timeline
2023-03-19 07:47:40 +01:00