Mike Welsh
4e27818952
core: Don't recreate objects when switching button states
...
When switching button states, previously we cleared all children
and recreated children for the new state. Now any children that
exist in both states are persisted and not recreated.
Fixes #2354 .
2021-01-11 14:06:22 -08:00
Mike Welsh
6b2b0eb2c6
core: Allow mouse picking of children inside buttons
...
Particularly fixes cases of button-inside-button (#2354 ).
2021-01-11 14:06:22 -08:00
Toad06
0d7f64aa67
web: Only run JS scripts when `allowScriptAccess` is true
2021-01-11 13:16:00 -08:00
Toad06
7480e836ec
web: Changes from review
2021-01-11 13:16:00 -08:00
Toad06
0131665149
web: Fix clippy
2021-01-11 13:16:00 -08:00
Toad06
f48d5b424b
web: Fixes and improvements in `navigate_to_url`
2021-01-11 13:16:00 -08:00
dependabot-preview[bot]
29fc80a25a
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.12.0 to 4.13.0.
- [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.13.0/packages/eslint-plugin )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-11 12:04:49 -08:00
dependabot-preview[bot]
375e6186b1
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.12.0 to 4.13.0.
- [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.13.0/packages/parser )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-11 12:04:30 -08:00
dependabot-preview[bot]
4dbc4e55cc
build(deps-dev): bump eslint-plugin-jsdoc from 30.7.13 to 31.0.3 in /web
...
Bumps [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc ) from 30.7.13 to 31.0.3.
- [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases )
- [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v30.7.13...v31.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-11 12:04:14 -08:00
dependabot-preview[bot]
72e8e12c20
build(deps): bump log from 0.4.12 to 0.4.13
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.12 to 0.4.13.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.12...0.4.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-11 12:04:00 -08:00
dependabot-preview[bot]
7c1b5c4e68
build(deps): bump isahc from 1.0.2 to 1.0.3
...
Bumps [isahc](https://github.com/sagebind/isahc ) from 1.0.2 to 1.0.3.
- [Release notes](https://github.com/sagebind/isahc/releases )
- [Commits](https://github.com/sagebind/isahc/compare/1.0.2...1.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-10 17:18:55 -08:00
TÖRÖK Attila
cce3a8199d
web: Add a config option to disable the message about unsupported content
2021-01-10 16:02:23 -08:00
MrCheeze
c2470d39fc
desktop: Increase window maximum size to 32767x32767
...
By default, winit limits the window size to the screen resolution.
Since some flashes are larger than this, increase the limit to an
arbitrarily-chosen larger constant.
2021-01-10 15:11:34 -08:00
MrCheeze
c4f5b7aba0
chore: Bump wgpu-rs version to prevent dx11 resize crash
2021-01-10 15:11:34 -08:00
MrCheeze
054db37ba0
desktop: Fix rendering when window is has unexpected size ( close #1631 )
...
Winit's WindowBuilder will sometimes create a window whose size is
smaller than requested. Therefore, instead of assuming the actual
window size is requested size * scaling, just check what the true
size is. (window.inner_size() also takes scaling into account.)
This fixes at least one issue where rendering would fail on Windows
with the Vulkan backend due to the incorrect size being used.
2021-01-10 15:11:34 -08:00
dependabot-preview[bot]
9b3b65fafe
build(deps-dev): bump webpack from 5.12.2 to 5.12.3 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.12.2 to 5.12.3.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.12.2...v5.12.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-10 13:00:39 -08:00
dependabot-preview[bot]
5606c02efd
build(deps): bump svg from 0.8.0 to 0.8.1
...
Bumps [svg](https://github.com/bodoni/svg ) from 0.8.0 to 0.8.1.
- [Release notes](https://github.com/bodoni/svg/releases )
- [Commits](https://github.com/bodoni/svg/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-10 13:00:07 -08:00
relrelb
828d8b7339
demo: General refactor
...
General cleanup and refactoring of the web demo
2021-01-09 19:36:05 -08:00
Mike Welsh
484ac03ca8
tests: Test removeMovieClip on non-movieclips
2021-01-09 18:31:04 -08:00
Mike Welsh
bab88ede8c
fix
2021-01-09 18:31:04 -08:00
MrCheeze
ff15b67192
avm1: Allow RemoveSprite/removeMovieClip on any display object
2021-01-09 18:31:04 -08:00
Mike Welsh
6638aebde8
tests: Add test verifying proper getBytesTotal value
2021-01-09 14:29:19 -08:00
MrCheeze
5915f2a841
core: Return uncompressed length for getBytesLoaded/Total
2021-01-09 14:29:19 -08:00
dependabot-preview[bot]
fdec1a51ce
build(deps-dev): bump webpack from 5.12.1 to 5.12.2 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.12.1 to 5.12.2.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.12.1...v5.12.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-09 12:02:59 -08:00
Adrian Wielgosik
828dbcb00c
Don't panic on invalid JPEG sizes in DefineBitsJpeg*
2021-01-08 13:38:41 -08:00
dependabot-preview[bot]
f80d74a3d7
build(deps): bump smallvec from 1.6.0 to 1.6.1
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.6.0...v1.6.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-08 12:09:49 -08:00
dependabot-preview[bot]
dbb1bfb845
build(deps): bump byteorder from 1.3.4 to 1.4.2
...
Bumps [byteorder](https://github.com/BurntSushi/byteorder ) from 1.3.4 to 1.4.2.
- [Release notes](https://github.com/BurntSushi/byteorder/releases )
- [Changelog](https://github.com/BurntSushi/byteorder/blob/master/CHANGELOG.md )
- [Commits](https://github.com/BurntSushi/byteorder/compare/1.3.4...1.4.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-08 12:09:34 -08:00
dependabot-preview[bot]
3c81c7766f
build(deps-dev): bump webpack from 5.11.1 to 5.12.1 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.11.1 to 5.12.1.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.11.1...v5.12.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-08 12:08:56 -08:00
dependabot-preview[bot]
ea9576f9d4
build(deps): bump futures from 0.3.8 to 0.3.9
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.8 to 0.3.9.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.8...0.3.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-08 12:08:30 -08:00
relrelb
55f348f014
desktop: Prevent entering/exiting fullscreen repeatedly
2021-01-08 11:59:08 -08:00
relrelb
b2867aa3b9
desktop: Add fullscreen exit keyboard shortcut
...
Flash Player also exits fullscreen when escape is pressed.
2021-01-08 11:59:08 -08:00
relrelb
030ff398ef
desktop: Handle fullscreen keyboard shortcut in its own case
2021-01-08 11:59:08 -08:00
dependabot-preview[bot]
61bc46203b
build(deps): bump log from 0.4.11 to 0.4.12
...
Bumps [log](https://github.com/rust-lang/log ) from 0.4.11 to 0.4.12.
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.11...0.4.12 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-07 17:53:23 -08:00
Mike Welsh
cb9bdcdfdb
desktop: Hook up DesktopUiBackend::is_fullscreen
2021-01-07 12:49:36 -08:00
relrelb
6270156c74
desktop: Change fullscreen shortcut to Alt+Enter
...
And also remove the Escape shortcut because it might interfere with
games.
2021-01-07 12:49:36 -08:00
relrelb
abe608fd4d
desktop: Add fullscreen keyboard shortcut
2021-01-07 12:49:36 -08:00
Toad06
b81fb64be9
web: Prevent "414 URI Too Long" error on Github when reporting bugs
2021-01-07 11:51:00 -08:00
Mike Welsh
44e9185a5f
core: Adjust culling area based on letterbox setting
2021-01-07 11:46:07 -08:00
Mike Welsh
01aca9f861
web: Remove upgrade_to_https param from Ruffle::new
...
Grab it from the `config` directly instead of using an extra param.
2021-01-07 11:46:07 -08:00
Mike Welsh
bacb66b97b
core: Move Letterbox to config module
2021-01-07 11:46:07 -08:00
Mike Welsh
87ae91963b
demo: Enable letterbox for demo
2021-01-07 11:46:07 -08:00
Mike Welsh
8728804f28
web: Add letterbox config option
2021-01-07 11:46:07 -08:00
Mike Welsh
e9da6a13f0
core: Add letterbox setting
...
Player::set_letterbox can be used to control the letterbox behavior.
* Letterbox::Off => no letterbox (flash behavior)
* Letterbox::Fullscreen => letterbox only in fullscreen (web default)
* Letterbox::On => always letterbox (desktop default)
2021-01-07 11:46:07 -08:00
Mike Welsh
03b5edd4d1
render: Remove RenderBackend::draw_letterbox
...
Move letterbox draw logic to `Player`, using renderer.draw_rect
2021-01-07 11:46:07 -08:00
dependabot-preview[bot]
610fd50a4f
build(deps-dev): bump archiver from 5.1.0 to 5.2.0 in /web
...
Bumps [archiver](https://github.com/archiverjs/node-archiver ) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/archiverjs/node-archiver/releases )
- [Changelog](https://github.com/archiverjs/node-archiver/blob/master/CHANGELOG.md )
- [Commits](https://github.com/archiverjs/node-archiver/compare/5.1.0...5.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-01-06 20:53:44 -08:00
CUB3D
063c8a1234
chore: Fix formatting
2021-01-06 18:06:30 -08:00
CUB3D
01557fba5a
core: Add flash.filters.GradientGlowFilter
2021-01-06 18:06:30 -08:00
CUB3D
0cab167e4c
core: Add flash.filters.GradientBevelFilter + refactor existing filters
2021-01-06 18:06:30 -08:00
Moulins
02c591958e
core/avm1: don't run onLoadInit handler if movie loading failed
...
Replace Loader::Movie::loader_complete flag by an enum to distinguish
between success and failure.
Fixes #2123
2021-01-06 16:00:58 -08:00
relrelb
468b2ca487
core: Ignore SetBackgroundColor in child movie clips
2021-01-06 16:00:11 -08:00