Aaron Hill
7004e98b23
avm2: Don't validate Context3DVertexBufferFormat when buffer is null
...
This matches Flash Player's behavior - some SWFS try to pass in 'null'
for both the buffer and format.
2023-05-18 15:14:29 -05:00
Crowdin Bot
e3da17b426
chore: Update translations from Crowdin
2023-05-18 13:01:57 +02:00
Toad06
b9abc463d6
web: Minor improvements to the extension player page
2023-05-18 03:34:19 +03:00
iwannabethedev
8cd5414c5d
Fix overflow bug in `shape_utils::winding_number_line()`
2023-05-17 07:21:13 +03:00
renovate[bot]
f969bdce71
fix(deps): update wasm-bindgen
2023-05-17 06:44:50 +03:00
Crowdin Bot
7c954925ba
chore: Update translations from Crowdin
2023-05-17 02:36:40 +02:00
Aaron Hill
75569e1311
avm2: Throw error for invalid Stage3D back buffer size
2023-05-16 17:36:22 -05:00
renovate[bot]
82c61b5a52
chore(deps): update node.js dependencies
2023-05-16 22:57:24 +02:00
Nathan Adams
e44ff69be4
ci: Add crowdin github actions
2023-05-16 22:25:54 +02:00
Daniel Jacobs
56afce2e3a
web: Fix localStorage check on Firefox when dom.storage.enabled is false
2023-05-16 22:10:42 +03:00
Toad06
19c0bb14d5
web: Only minify ascii characters on selfhosted builds
2023-05-16 21:39:40 +03:00
Toad06
aac0c43372
swf: Bail out if swf version is 0
2023-05-16 20:23:23 +02:00
relrelb
1065662e84
web: Use `JsValue::from_bool()`
2023-05-15 21:04:47 +03:00
Aaron Hill
12e815d383
core: Take 'self' instead of '&mut self' in `replace_with_movie`
2023-05-15 20:01:02 +03:00
Aaron Hill
bd2be88711
wgpu: Fix MSAA and depth buffer handling in SetRenderToTexture
...
When multisampling is enabled, we should create a new multisampled texture,
and use the existing texture as the resolve buffer. We also need to
call `update_has_depth_texture` to keep our pipeline aware of whether
or not we currently have a depth buffer attached.
Makes progress on #10641 (it has a stack overflow after
this PR, due to an unrelated issue).
2023-05-15 09:34:30 -05:00
Toad06
55c7a4b895
extension: Don't say that Ruffle cannot load on "player.html"
2023-05-15 16:22:29 +03:00
Toad06
dd4c805e70
web: Escape non-ASCII characters to prevent issues on non-UTF-8 encoded pages
...
Co-Authored-By: relrelb <relrelb@users.noreply.github.com>
2023-05-15 11:57:05 +03:00
renovate[bot]
5b26d1b2ee
fix(deps): update wasm-bindgen
2023-05-15 10:00:49 +03:00
Lord-McSweeney
b24fc7c07f
avm2: Improve Shader stub
2023-05-15 09:40:43 +03:00
iwannabethedev
d0f8061c85
core: documentation changes.
2023-05-15 00:51:54 +02:00
iwannabethedev
c86aed35a2
tests/core: Add test for BitmapData.draw() with ColorTransform.
2023-05-15 00:51:54 +02:00
iwannabethedev
8c92cecb60
core: Add documentation to Color.
2023-05-15 00:51:54 +02:00
iwannabethedev
9de2abe8b8
core: Fix wrong color form used.
2023-05-15 00:51:54 +02:00
relrelb
4a26ceb14b
render: Use `swf::Point<Twips>` in more places
2023-05-14 22:48:41 +03:00
relrelb
220f8cd1cf
render: Use `swf::Point<Twips>` in `shape_hit_test()`
2023-05-14 22:48:41 +03:00
relrelb
25a1d53f72
render: Use `swf::Point<Twips>` in `calculate_shape_bounds()`
2023-05-14 22:48:41 +03:00
relrelb
598c8cde0e
render: Use `swf::Point<Twips>` in `DrawCommand::CurveTo`
2023-05-14 22:48:41 +03:00
relrelb
544e445d2f
render: Use `swf::Point<Twips>` in `DrawCommand::LineTo`
2023-05-14 22:48:41 +03:00
relrelb
e5c7d70f3f
render: Use `swf::Point<Twips>` in `DrawCommand::MoveTo`
2023-05-14 22:48:41 +03:00
Lord-McSweeney
3079ae30a5
avm2: Stub SharedObject.setProperty
2023-05-14 19:01:24 +03:00
Nathan Adams
a9ba46594f
chore: Updated translations from Crowdin
2023-05-14 13:31:32 +02:00
Lord-McSweeney
017a44084f
avm2: nit: Provide error number (2025) in error message for validate_remove_operation
2023-05-13 21:30:47 +03:00
Toad06
9671b9b824
web: Download all sols as single .zip
2023-05-13 19:19:00 +03:00
Aaron Hill
729d5a2c65
avm2: Don't overwrite existing entry in `export_class`
...
This makes the behavior consistent with `export_definition`
2023-05-13 11:15:54 +03:00
Aaron Hill
3c6820c6e1
avm2: Check length and copy vector in Matrix3D constructor
2023-05-13 11:00:31 +03:00
Daniel Jacobs
fd07c80ea6
docs: Update Contributing.md TOC
2023-05-13 10:49:41 +03:00
iwannabethedev
a023e11098
render: Clean-up.
2023-05-12 22:42:44 +02:00
iwannabethedev
476ff4aeef
core: Fix drawing on cpu with color transform.
...
Taken directly from this commit, credits to Dinnerbone:
9b76090e1f
2023-05-12 22:42:44 +02:00
iwannabethedev
77e1cc96c2
render: Fix of panic in #10955 .
2023-05-12 22:42:44 +02:00
Toad06
2e972b8f32
avm1: `button.useHandCursor` can hold any value
2023-05-12 01:13:28 +03:00
iwannabethedev
93450b28b0
avm2: Add 'static length' for most types.
2023-05-11 22:16:55 +02:00
Toad06
94ad41dfd4
web: Update source string
2023-05-11 09:36:06 +03:00
relrelb
660acac427
swf: Use `PointDelta<Twips>` in `ShapeRecord`
2023-05-11 08:55:44 +03:00
relrelb
b93a32af0f
swf: Use `Point<Twips>` in `StyleChangeData::move_to`
...
No functionality change.
2023-05-11 08:55:44 +03:00
relrelb
e01b613a78
web: Fix another instance of "Unable to lock Ruffle core"
...
After a panic, `Ruffle::renderer_debug_info()` cannot be called since
it tries to immutably borrow the underlying `Player`, but `Ruffle::tick()`
already holds it mutably.
As a fix, simply use the `_cachedDebugInfo` which is fetched in
advance, before any panic occurs. Rename it to just `rendererDebugInfo`
(without "cache" in its name), because now it's mandated.
2023-05-11 08:33:33 +03:00
relrelb
5b8e0df83f
web: Move `Ruffle::destroy()` logic to `RuffleInstance::drop()`
2023-05-11 08:33:33 +03:00
relrelb
942d030dc7
web: Slight cleanups around panicking
2023-05-11 08:33:33 +03:00
Aaron Hill
e488cc9f7a
wgpu: Allow unaligned writes to IndexBuffer3D
...
wgpu requires buffer copy sizes and offsets to be 4-byte aligned.
Unfortunately, ActionScript can perform 2-byte aligned uploads
into an IndexBuffer3D.
To support this, we now keep a copy of the IndexBuffer3D on the CPU.
When performing an upload to the buffer, we round the offset down
and the size up to the nearest 4-byte aligned value. The cpu buffer
is used to fill out the write with existing data, so that we don't
corrupt the contents of the GPU buffer.
To avoid introducing a new RefCell, I've changed IndexBuffer3D
to use a `Box` instead of an `Rc` to store the trait object.
This allows us to pass a mutable reference down to the backend.
2023-05-10 18:20:29 -05:00
Daniel Jacobs
ea78bf2d39
web: Make isTouch locally scoped to showContextMenu
2023-05-10 17:31:07 +03:00
Huw Pritchard
b79b192a58
avm2: Implement PrintJobOptions
2023-05-09 20:51:44 -05:00