Adrian Wielgosik
2b2a7c3c27
Remove redundant SystemPrototypes from UpdateContext.
2020-12-31 13:09:59 -08:00
dependabot-preview[bot]
058305b341
build(deps-dev): bump ts-loader from 8.0.12 to 8.0.13 in /web
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 8.0.12 to 8.0.13.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases )
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v8.0.12...v8.0.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-31 00:51:49 -08:00
Mike Welsh
ea3b6f59df
avm1: Implement XML.ignoreWhite
2020-12-30 16:00:39 -08:00
Mike Welsh
caa2d8e383
tests: Add test for XML.ignoreWhite
2020-12-30 16:00:39 -08:00
Toad06
2d0c76c06f
demo: Only accepts .swf and .spl files
2020-12-30 15:14:28 -08:00
Mike Welsh
d736293425
avm1: Fix method calls with null/empty string name
...
`f[null]` should call `f["null"]`.
`f[undefined]`, `f[""]`, `f[o]` where o.toString returns the empty
string should call `f` directly.
2020-12-30 13:35:36 -08:00
CUB3D
5fb15c8f80
core: Support CallMethod with non-string method_name ( fix #2160 )
2020-12-30 13:35:36 -08:00
Toad06
3ae9ad57fc
web: Prevent crashes when native `Window` is overridden
2020-12-30 13:18:13 -08:00
paq
4f980becb2
avm1: Implement escape
2020-12-30 12:42:03 -08:00
Mike Welsh
3ea8c2fc7e
chore: Fix typedoc config for typedoc 0.20
2020-12-29 17:27:48 -08:00
Mike Welsh
3ce4406434
core: Fix memory leak caused by unbound text variables
...
Text fields without variables would return as unbound in
EditText::try_bind_text_field_variable, causing them to be added
to the unbound textfield list even though they had no variable
setting. Return successful bidning by default to avoid adding
these textfields to the unbound list.
2020-12-29 14:18:07 -08:00
Mike Welsh
802aa9b7a7
avm1: Allow SharedObject creation even if URL is unknown ( fix #2150 )
...
Allow SharedObjects to be created even in the case that the movie
URL is None (for example, loading an SWF from bytes). Use a dummy
"localhost" URL.
2020-12-29 14:17:57 -08:00
Mike Welsh
ff5ecf9754
avm1: Fix incorrect name used for SharedObject cache ( fix #2149 )
2020-12-29 14:17:57 -08:00
Callum Thomson
7b202bd2e7
avm1: Implement flash.filters.ColorMatrixFilter avm1 built-in
2020-12-29 03:10:46 -08:00
maichiu
61915a412d
docs: Added link to the Using Ruffle wiki page
...
* Added link to the Using Ruffle wiki page
Renamed the "Nightly Builds" section to "Using Ruffle", added info about the web demo, and added link to the "Using Ruffle" wiki page
* Updated the Nightly Builds link
The table on the Ruffle website is easier to understand than the GitHub Releases page, so I changed the Nightly Builds link to point there
2020-12-29 03:10:12 -08:00
Mike Welsh
6aafb46b49
desktop: Don't render while minimized
...
On desktop, don't render while the window is minimized.
In the wgpu backend, don't panic if swap chain fails to grab a
texture. Instead recreate the swap chain and bail on the current
frame.
Fixes panic when minimizing with the wgpu vulkan backend (#2065 ).
2020-12-28 16:00:13 -08:00
dependabot-preview[bot]
268ed44d6d
build(deps-dev): bump typedoc from 0.19.2 to 0.20.0 in /web
...
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc ) from 0.19.2 to 0.20.0.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases )
- [Commits](https://github.com/TypeStrong/TypeDoc/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-28 12:53:16 -08:00
dependabot-preview[bot]
cde3df7817
build(deps-dev): bump webpack from 5.11.0 to 5.11.1 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.11.0 to 5.11.1.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.11.0...v5.11.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-28 12:53:00 -08:00
dependabot-preview[bot]
26344afbba
build(deps-dev): bump @typescript-eslint/eslint-plugin in /web
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.11.0 to 4.11.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.1/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-28 12:52:35 -08:00
dependabot-preview[bot]
5f9c0071c3
build(deps-dev): bump @typescript-eslint/parser in /web
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.11.0 to 4.11.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.1/packages/parser )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-28 12:52:22 -08:00
paq
8c86434e38
avm1: Implement Matrix.deltaTransformPoint
2020-12-28 01:17:00 -08:00
paq
8baa36e801
avm2: Implement isFinite
2020-12-27 23:02:39 -08:00
paq
ce2d7efac3
avm2: Implement isNaN
2020-12-27 23:02:39 -08:00
Mike Welsh
7bdbb6c37d
text: Fix masking of text area ( fix #1496 , #1554 )
2020-12-27 23:01:24 -08:00
Mike Welsh
3ff6a37ff4
webgl: Make separate VAO for color quad vs. bitmap quad ( fix #1834 )
2020-12-27 23:01:24 -08:00
Mike Welsh
8d707bc6ab
core: onKeyUp/Down method handlers fire only if clip has focus ( fix #2120 )
2020-12-27 16:08:27 -08:00
paq
7bfe3f7177
avm1: Implement Matrix.transformPoint (ruffle-rs#303)
2020-12-27 14:27:04 -08:00
Mike Welsh
972e743e34
web: Flush shared objects in unload intead of beforeunload
...
Fix part of #2092 . A panic could occur if content navigated away
using getURL, which could trigger the shared object flush while
the frame was still executing. Move the flush to "unload" so that
it occurs after execution is complete.
2020-12-27 14:01:42 -08:00
Mike Welsh
9e46757f5f
chore: Bump to wgpu-rs master
2020-12-27 00:44:11 -08:00
Mike Welsh
1b77f0bc20
wgpu: Create bind group for textured quad for each bitmap
...
Instead of creating a new bind group each time a bitmap is rendered,
create a bind group for each bitmap when it is registered.
2020-12-27 00:44:11 -08:00
Mike Welsh
f343aff502
wgpu: Use a single render pass and push constants
...
Switch to a single render pass for the whole frame, as opposed to
a render pass per draw call. This should be a large improvement to
performance. This currently requires some unsafe to work around a
self-reference between RenderPass and CommandEncoder in Frame;
this could eventually be cleaned up by changing RenderBackend
to return a Frame object instead of using begin_frame/end_frame
pairs.
Also switch to using push constants for the transform/color
uniforms.
2020-12-27 00:44:11 -08:00
Mike Welsh
8222d3095b
desktop: Add --timedemo benchmark
...
Add --timedemo for benchmarking, which will run the given SWF as
quickly as possible for 5000 frames or the end of the root
timeline, whichever comes first. The total duration will be output
upon completion.
2020-12-26 23:59:12 -08:00
jmckiern
a3b4074fc4
core: Fix multiline selection bug
2020-12-26 23:18:02 -08:00
jmckiern
208a69d715
core: Move caret to start or end of selection if shift is not held
...
Previously pressing left with a selection would set `selection.to = selection.start() - 1`, now it sets it to `selection.to = selection.start()`. The same is true for right/selection.end()
2020-12-26 23:18:02 -08:00
jmckiern
464f2b63a9
chore: Fix spelling mistake
2020-12-26 23:18:02 -08:00
jmckiern
c277c1083b
core: Render selected text as white with black background
2020-12-26 23:18:02 -08:00
jmckiern
0269c31dbc
core: Change caret color to text color
2020-12-26 23:18:02 -08:00
Mike Welsh
67d95e0c00
exporter: Fix panic when using --frames ( fix #1614 )
2020-12-26 20:39:44 -08:00
dependabot-preview[bot]
e9d996c960
build(deps): bump thiserror from 1.0.22 to 1.0.23
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.22 to 1.0.23.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.22...1.0.23 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-26 20:08:49 -08:00
dependabot-preview[bot]
c3811b30f5
build(deps-dev): bump webpack-cli from 4.2.0 to 4.3.0 in /web
...
Bumps [webpack-cli](https://github.com/webpack/webpack-cli ) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases )
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.2.0...webpack-cli@4.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-26 15:03:42 -08:00
Mike Welsh
7b3112d89d
ci: Disable macOS web tests for now
...
macOS-web has been flaky on CI, so disable it for now.
2020-12-26 14:09:41 -08:00
dependabot-preview[bot]
1b4c8265b7
build(deps): bump syn from 1.0.55 to 1.0.56
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.55 to 1.0.56.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.55...1.0.56 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-26 14:01:15 -08:00
dependabot-preview[bot]
f74fc3abe3
build(deps-dev): bump source-map-loader from 1.1.3 to 2.0.0 in /web
...
Bumps [source-map-loader](https://github.com/webpack-contrib/source-map-loader ) from 1.1.3 to 2.0.0.
- [Release notes](https://github.com/webpack-contrib/source-map-loader/releases )
- [Changelog](https://github.com/webpack-contrib/source-map-loader/blob/master/CHANGELOG.md )
- [Commits](https://github.com/webpack-contrib/source-map-loader/compare/v1.1.3...v2.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-24 23:32:54 -08:00
Sam Morrow
38bdb8b39a
web/desktop: Add basic dialog handling ( closes #1978 )
2020-12-23 19:08:18 -08:00
Mike Welsh
367404ddd8
core: SharedObjects are bucketed by domain
...
Key SharedObjects on the domain and path where the SWF is hosted,
and implement the localPath and secure parameters.
Fix #855 .
2020-12-22 14:18:06 -08:00
Callum Thomson
e38d559b1e
avm1: Implement flash.filters.DropShadowFilter
...
Implements the AVM object for DropShadowFilter. Actual rendering is still TODO.
2020-12-22 14:17:12 -08:00
David Wendt
b848e4c5ff
avm2: Get rid of `RufflePrivate` and just use regular private namespaces scoped to our own domain.
2020-12-21 21:47:29 -08:00
David Wendt
30d8dc21be
avm2: Remove weird `into` constructor on `EventHandler`
2020-12-21 21:47:29 -08:00
David Wendt
7baa3cc06d
avm2: Seal the `EventDispatcher` class
2020-12-21 21:47:29 -08:00
David Wendt
3ff9b87261
avm2: `RufflePrivate` namespaces should be treated as private namespaces.
2020-12-21 21:47:29 -08:00