Commit Graph

4762 Commits

Author SHA1 Message Date
Lord-McSweeney a369e71af6 Appease clippy again 2023-02-03 23:32:22 +01:00
Lord-McSweeney 83087f9f23 Change stubs to use new macro method 2023-02-03 23:32:22 +01:00
Lord-McSweeney a6ea1ef4a7 Appease clippy 2023-02-03 23:32:22 +01:00
Lord-McSweeney add115e97f State "Stub" instead of "Implement"
...and fix a format issue.
2023-02-03 23:32:22 +01:00
Lord-McSweeney 963f3240f2 Stub DisplayObject.opaqueBackground 2023-02-03 23:32:22 +01:00
nosamu 12c67d5068 desktop: Improve --help messages 2023-02-03 21:17:56 +01:00
Nathan Adams 198e40fd2e avm2: Changed return values of a bunch of stubs per PR feedbck 2023-02-01 21:45:12 +01:00
Nathan Adams 8e917c473e avm2: Replaced stubs in Proxy with new format 2023-02-01 21:45:12 +01:00
Nathan Adams b28e921fb9 avm2: Replaced stubs in Keyboard with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 99e723a1cb avm2: Replaced stubs in TextField with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 2a36f9b871 avm2: Replaced stubs in StaticText with new format 2023-02-01 21:45:12 +01:00
Nathan Adams ff768a1e73 avm2: Replaced stubs in Font with new format 2023-02-01 21:45:12 +01:00
Nathan Adams af73a1a292 avm2: Replaced stubs in Security with new format 2023-02-01 21:45:12 +01:00
Nathan Adams e48926799c avm2: Replaced stubs in SharedObject with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 408482cd21 avm2: Replaced stubs in ObjectEncoding with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 69101af66b avm2: Replaced stubs in SoundMixer with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 834ac93350 avm2: Replaced stubs in Sound with new format 2023-02-01 21:45:12 +01:00
Nathan Adams cb1fa72d6f avm2: Replaced stubs in Transform with new format 2023-02-01 21:45:12 +01:00
Nathan Adams a576903f0c avm2: Replaced stubs in IndexBuffer3D with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 24169a3577 avm2: Replaced stubs in Stage with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 6a6e81ad6a avm2: Replaced stubs in LoaderInfo with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 33dbe82b4f avm2: Replaced stubs in InteractiveObject with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 46ed595186 avm2: Replaced stubs in Graphics with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 0abfb79c62 avm2: Replaced stubs in DisplayObjectContainer with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 0e522fd58b avm2: Replaced stubs in displayobject with new format 2023-02-01 21:45:12 +01:00
Nathan Adams fb0578ee26 avm2: Replaced stubs in bitmapdata with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 10ec9a1a74 avm2: Replaced stubs in namespace with new format (but still err as I don't know what to return otherwise) 2023-02-01 21:45:12 +01:00
Nathan Adams 8f53f5414c avm2: Replaced stubs in bitmap with new format 2023-02-01 21:45:12 +01:00
Nathan Adams 44981af409 avm1: Replaced all existing stub warnings with new stub system 2023-02-01 21:45:12 +01:00
Nathan Adams 366f8bef43 core: Add feature known_stubs to retrieve all known stubs 2023-02-01 21:45:12 +01:00
Nathan Adams 4a0529dedc core: Add Stub and StubCollection for tracking stubs used during a movie 2023-02-01 21:45:12 +01:00
renovate[bot] caaf6d5c87 fix(deps): update rust dependencies 2023-01-31 09:39:42 -06:00
nosamu 5ee3b821dd core: Fix DO render tree display 2023-01-29 11:58:59 -06:00
Moulins e36b03bce9 core::html: correctly encode text in FormatSpans::to_html
Fixes issue #9327
2023-01-29 11:19:16 -06:00
CUB3D f829157deb avm1: Defining a local that already exists on the target of a with scope, defines it on the target not the parent 2023-01-29 18:05:25 +01:00
Aaron Hill c6eb25194e core: Bump flash-lso to latest commit
This deduplicates some dependencies, and removes
a future-incompat warning from `nom`.
2023-01-29 17:31:10 +01:00
Nathan Adams 85dc100ee9 avm2: Implement Sprite.dropTarget - though it's wrong right now 2023-01-29 00:52:52 +01:00
Daniel Jacobs 6697848b92 avm1: Don't ignore mouse_pick on static text (fix #9274) 2023-01-29 00:39:06 +01:00
Daniel Jacobs b00628f45d avm2: Add warning to MouseEvent.updateAfterEvent 2023-01-28 14:31:52 -06:00
Daniel Jacobs 65a0aaeb7b avm2: Stub MouseEvent.updateAfterEvent
Basically a direct copy of https://github.com/ruffle-rs/ruffle/pull/7653
2023-01-28 14:31:52 -06:00
Aaron Hill 7ba960987c core: Display class name in ErrorObject debug impl
This lets us know something about the type of error
that was thrown, and doesn't require an Activation/UpdateContext.
2023-01-24 20:38:45 -06:00
TÖRÖK Attila e77b1e379c core/audio: mp3: Use MpaReader instead of the deprecated Mp3Reader from Symphonia 2023-01-24 20:10:40 -06:00
renovate[bot] 8b6eef1715 fix(deps): update rust dependencies 2023-01-24 20:10:40 -06:00
Daniel Jacobs 0a04b22a79 avm2: Stub simple flash.text.engine enums 2023-01-23 13:51:26 -06:00
MartySVK ad688b45da
avm2: added Stage.fullScreenSourceRect stub (#9265)
* avm2: added Stage.fullScreenSourceRect

* fixing checks I hope
2023-01-22 16:29:12 -05:00
Aaron Hill e2954821ea
core: Take two - delay reading image back from render backend using `SyncHandle` (#9184)
* Take two: Delay reading image back from render backend using `SyncHandle`

This allows us to avoid blocking immediately after a `BitmapData.draw` call.
Instead, we only attempt to use the `SyncHandle` when performing an operation
that requires the CPU-side pixels (e.g. BitmapData.getPixel or BitmapData.setPixel).

In the best case, the SWF will never explicitly access the pixels of
the target BitmapData, removing the need to ever copy back the render backend
image to our BitmapData. If the SWF doesn't require access to the pixels immediately,
we can delay copying the pixels until they're actually needed, hopefully allowing
the render backend to finish processing the BitmapData.draw operation in
the backenground before we need the result.

Now that the CPU and GPU pixels can be intentionally out of sync with
each other, we need to ensure that we don't accidentally expose 'stale'
CPU-side pixels to ActionScript (which needs to remain unaware of
our internal laziness). We now use a wrapper type `BitmapDataWrapper`
to enforce that the `SyncHandle` is consumed before accessing the
underlying `BitmapData.

* core: Skip GPU->CPU sync for source and target BitmapData during draw

* Introduce DirtyState enum
2023-01-21 21:08:04 +00:00
MartySVK 6d5f6385a5
avm2: added TextField.restrict stub (#9218)
* added TextField.restrict stub

Co-authored-by: Martin Mravec <marty.devil@gmail.com>
2023-01-19 22:23:33 -05:00
Adrian Wielgosik fb4d2d3f04 avm2: Implement TextField.maxChars 2023-01-19 01:24:47 +01:00
Nathan Adams 5f72ebaef9 core: Don't call avm2 callstack method if there's no callstack 2023-01-19 00:50:56 +01:00
Nathan Adams f5d69f5ad8 avm2: Corrected panic messages in date code 2023-01-16 21:48:00 +01:00