tinaun
ff518b9deb
use light menus on light theme & detect changes
2023-05-30 23:07:09 +02:00
relrelb
df1cd29a12
tests: Expand `duplicate_movie_clip`
2023-05-30 23:10:36 +03:00
relrelb
c952106ee3
avm1: Correct `ActionCloneSprite` and `duplicateMovieClip()`
...
* `ActionCloneSprite` coerces `depth` before `target`.
* `duplicateMovieClip()` coerces `name` before `depth`.
* `duplicateMovieClip()` returns `undefined` on SWF<6.
2023-05-30 23:10:36 +03:00
Daniel Jacobs
ac68ab0485
ci: Don't run crowdin workflows on forks
2023-05-30 21:37:00 +02:00
Toad06
7830a8232b
web: Allow extra MIME types in the polyfill
2023-05-30 06:35:29 +00:00
Adrian Wielgosik
8d6c08df4d
Desktop: Stop busy looping when idling
2023-05-29 22:51:40 +02:00
Nathan Adams
d99415c644
desktop: Don't use winit workaround for File->Open, to avoid unresponsive ruffle in that case alone
2023-05-29 22:12:56 +02:00
Nathan Adams
59d917b15a
desktop: Default open the Advanced Open dialog
2023-05-29 22:12:56 +02:00
Nathan Adams
0c10e2a7b7
desktop: Add advanced open dialog
2023-05-29 22:12:56 +02:00
Nathan Adams
9e9ee361c4
desktop: Pass PlayerOptions when loading swfs, defaulting to the CLI args
2023-05-29 22:12:56 +02:00
Nathan Adams
a86aff07a6
desktop: Use new PlayerOptions struct for player building, not CLI args directly
2023-05-29 22:12:56 +02:00
Nathan Adams
558fea2a7c
desktop: Add PlayerController:handle_event that also checks for player pause status
2023-05-29 21:23:00 +02:00
Nathan Adams
101277a32b
desktop: Add suspend/resume buttons
2023-05-29 21:23:00 +02:00
TÖRÖK Attila
b8fc64df6f
core/avm1: Accept Value as smaller than 16 bytes on 32 bit platforms.
2023-05-29 07:58:53 -05:00
renovate[bot]
847dece735
chore(deps): lock file maintenance rust dependencies
2023-05-28 23:54:33 -05:00
Aaron Hill
d18df2d3f1
tests: Add non-power-of-2 texture test
2023-05-28 23:35:53 -05:00
Aaron Hill
12e078bb2d
wgpu: Fix calculation of image row padding
2023-05-28 23:35:53 -05:00
Aaron Hill
0955ab40e6
avm2: Fix rounding behavior in BitmapData rectangle operations
...
Flash Player performs `x + width` and `y + height` as floating
point operations before `round_to_even`. This affects the extent
covered by a `Rectangle` in various BitmapData methods, as the sum
of two values might be large enough to be rounded up to a larger
value (when rounding `x` and `width` individually would have
produced a smaller overall extent).
2023-05-28 18:46:55 -05:00
Aaron Hill
2ae15b05e8
core: Store Color as an u32 instead of a i32
...
This is a packed ARGB value, so it doesn't make sense for it to be
signed.
2023-05-28 16:52:09 -05:00
Aaron Hill
3f93abffd5
avm2: Allow replacing and deleting XML attributes
2023-05-28 15:52:57 -05:00
Aaron Hill
14c6d1d959
avm2: Implement URLRequest.requestHeaders
...
These are directly set on the underlying navigator's HTTP
request type, and get printed out in our test navigator backend.
No validation of the header names is performed - on web, this will be
enforced by the browser.
2023-05-28 12:07:37 -05:00
Toad06
6c0cf8fc83
web: Fix minor issues with the context menu
2023-05-28 07:51:00 +03:00
relrelb
ee30646745
avm1: Migrate `DisplacementMapFilter` to `NativeObject`
2023-05-27 23:08:42 +03:00
Lord-McSweeney
420643b045
avm2: Stub Worker
2023-05-27 00:58:34 -05:00
Nathan Adams
aeb089ac0f
avm2: Move DisplayObject assignment into an initializer
2023-05-26 22:06:20 -05:00
Aaron Hill
cf4ca543bd
core: Use clone-on-write behavior for render list iteration
...
When we iterate over a render list (in order to call
`enter_frame`, `construct_frame, etc.) we need to be sure
that we iterate over all of the original `DisplayObjects`
in the list, even if the list is modified during iteration
(e.g. some ActionScript code calls `parent.addChildAt`).
Previously, `RenderIter` would repeatedly call `child_by_index`
on the original `DisplayObjectContainer`, up to the original
child count. If new DisplayObjects were inserted into the list
during iteration, we could miss some of the original DisplayObjects
in the list (as they are now at a greater position in the list).
To solve this, we now store the render list as an `Rc<Vec>`,
and use `Rc::make_mut` to modify it. See the comments
for more details.
2023-05-26 21:42:06 -05:00
Crowdin Bot
e98230c988
chore: Update translations from Crowdin
2023-05-27 00:34:44 +02:00
Aaron Hill
9fad8ddd9d
core: Fix nightly clippy lints
2023-05-26 17:06:28 -05:00
TÖRÖK Attila
6d76e9669c
nit: Github -> GitHub
2023-05-25 10:40:47 +02:00
Aaron Hill
e98ff6a6d7
avm2: Add legacy handling for configureBackBuffer with SWF version < 30
...
With SWF version < 30, Context3D.configureBackBuffer throws
an error with a less informative message when the width/height
are out of range. Additionally, it seems to special case
the case width=0, height=0, antiAlias=0. enableDepthAndStencil=false,
and does *not* throw an error. This is relied on by Sniper Team.
2023-05-24 18:15:30 -05:00
Crowdin Bot
f3dd5dbfb6
chore: Update translations from Crowdin
2023-05-25 00:27:48 +02:00
Nathan Adams
b29a784968
wgpu: Remove render callback as it's no longer used
2023-05-24 23:50:48 +02:00
Nathan Adams
defe4d8308
desktop: Support dropping swfs onto the player
2023-05-24 23:50:48 +02:00
Nathan Adams
3e35e7887a
desktop: Add a few comments about Player related structs
2023-05-24 23:50:48 +02:00
Nathan Adams
ce714b92b6
desktop: When git info is unknown, don't show it
2023-05-24 23:50:48 +02:00
Nathan Adams
cd54dc3bc7
desktop: Fix crash on minimize
2023-05-24 23:50:48 +02:00
Nathan Adams
8acd3e653a
desktop: Use scale factor to determine menu height
2023-05-24 23:50:48 +02:00
Nathan Adams
d8bfb003c5
desktop: Switch to egui 0.22.0
2023-05-24 23:50:48 +02:00
Nathan Adams
67370b0ced
desktop: Revert attempts to fix x11 crash and stop relying on inner_size
2023-05-24 23:50:48 +02:00
Nathan Adams
cb87dfed7f
desktop: Move backend code into a backends mod
2023-05-24 23:50:48 +02:00
Nathan Adams
12e2758464
desktop: Localise texts
2023-05-24 23:50:48 +02:00
Nathan Adams
4600dc5c78
desktop: Forcefully update egui screen_rect to attempt to solve x11 crash
2023-05-24 23:50:48 +02:00
Nathan Adams
2ab2faa24d
desktop: Don't recreate surface on resize events, but when drawing and the size is different
2023-05-24 23:50:48 +02:00
Nathan Adams
5c22bcddc6
desktop: Add more links to help menu
2023-05-24 23:50:48 +02:00
Nathan Adams
1dbfa19b04
desktop: Configure the surface immediately
2023-05-24 23:50:48 +02:00
Nathan Adams
d11df54291
desktop: Hide menu in fullscreen
2023-05-24 23:50:48 +02:00
Nathan Adams
ee59bd006b
desktop: Add close movie menu item
2023-05-24 23:50:48 +02:00
Nathan Adams
3005158311
desktop: Always show the menu bar
2023-05-24 23:50:48 +02:00
Nathan Adams
7d7edec08c
desktop: Add much more info to About dialog
2023-05-24 23:50:48 +02:00
Nathan Adams
01e33d82c9
desktop: Use vergen to get version info
2023-05-24 23:50:48 +02:00