relrelb
bb89391f3a
chore: Avoid deprecated constants
...
The Rust documentation considers numeric constants prefixed with std::
as deprecated.
For example: https://doc.rust-lang.org/std/u16/constant.MAX.html .
2021-02-12 06:36:17 -08:00
Mike Welsh
e5fb1f09e7
chore: Appease clippy
...
* #[derive(Collect)] should be before #[collect]
* Replace redunant `&buf[..]` with `buf`
* Changes most cases of UPPERCase to UpperCase
* Allow upper_case_acronym on most SWF types, as they are from
SWF spec/more annoying to change.
2021-02-12 06:32:42 -08:00
TÖRÖK Attila
80b0bd3b33
swf: Add VideoCodec::ScreenVideoV2 variant
2021-02-12 03:37:14 -08:00
dependabot-preview[bot]
2fbbbe81b8
build(deps): bump quote from 1.0.8 to 1.0.9
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.8 to 1.0.9.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.8...1.0.9 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-12 02:32:42 -08:00
Adrian Wielgosik
da86f7fc5a
avm1: Don't mutably borrow display_properties for reading
...
Fixes #3199 .
2021-02-11 13:41:03 -08:00
dependabot-preview[bot]
b3fdd50bd0
build(deps): bump env_logger from 0.8.2 to 0.8.3
...
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/master/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.2...v0.8.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-11 11:38:29 -08:00
Mike Welsh
09c6def7f0
docs: Clarify license
2021-02-10 03:16:08 -08:00
Adrian Wielgosik
f787cffe54
web: Minimal polyfill of window.Reflect
2021-02-09 19:10:47 -08:00
Mike Welsh
16bd7fade6
web: Use case-insensitive check for detecting javascript scheme
2021-02-08 03:41:16 -08:00
dependabot-preview[bot]
b96325da62
build(deps-dev): bump ts-loader from 8.0.14 to 8.0.15 in /web
...
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader ) from 8.0.14 to 8.0.15.
- [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.14...v8.0.15 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-08 02:27:24 -08:00
dependabot-preview[bot]
fb975ba9ba
build(deps-dev): bump webpack from 5.20.2 to 5.21.2 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.20.2 to 5.21.2.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.20.2...v5.21.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-08 02:27:09 -08:00
paq
5cca3884d6
avm2: Implement `Array.length`'s setter
2021-02-07 23:49:52 -08:00
Napen123
a132f68688
docs: Update the documentation of SwfStr
2021-02-07 23:44:19 -08:00
Napen123
1ef3de8556
docs: Document the Rectangle type in the swf crate
2021-02-07 23:44:19 -08:00
Napen123
404fc72cb5
docs: Document the Color type in the swf crate
2021-02-07 23:44:19 -08:00
Napen123
52ebc48b2c
docs: Update the documentation of Twips
...
Add code examples to all Twips methods and convert method references to actual links.
2021-02-07 23:44:19 -08:00
paq
8aaead90de
avm2: Implement String.charCodeAt
2021-02-07 16:11:24 -08:00
paq
c7c025277f
avm2: Implement String.charAt
2021-02-07 16:11:24 -08:00
paq
2ec21bdd07
avm2: Implement String.length
2021-02-07 16:11:24 -08:00
paq
4a87d707f0
avm2: Implement String constructor
2021-02-07 16:11:24 -08:00
Mike Welsh
60f29719d3
core: Fix stroke artifacts when using drawing API
...
Some recent changes with lyon's API could cause Ruffle to draw extra
strokes when it sees two Move commands in a row -- an extra zero-length
stroke would appear. Let's merge adjacent Move commands in the
tessellator to avoid this issue.
(TODO: Add an example to visual_tests).
2021-02-05 14:54:55 -08:00
David A Roberts
6af18c1c4d
avm1: Implement MovieClip.setMask - #17 #263
2021-02-05 13:53:54 -08:00
dependabot-preview[bot]
1094a95491
build(deps): bump embed-resource from 1.5.0 to 1.5.1
...
Bumps [embed-resource](https://github.com/nabijaczleweli/rust-embed-resource ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/nabijaczleweli/rust-embed-resource/releases )
- [Commits](https://github.com/nabijaczleweli/rust-embed-resource/compare/v1.5.0...v1.5.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-05 10:50:00 -08:00
TÖRÖK Attila
4ea1d9e33c
web/build: Make successful wasm-opt invocation mandatory on GitHub Actions
2021-02-05 10:38:47 -08:00
Mike Welsh
937393ce07
core: Fix panic from negative array indices in SharedObject ( fix #3094 )
2021-02-04 19:56:29 -08:00
Mike Welsh
cfbb5751e8
tests: Add test for local SharedObject
2021-02-04 19:56:29 -08:00
Toad06
b5749ee228
web: Fix some context menu and warning message issues
2021-02-04 15:10:04 -08:00
crumblingstatue
5f25fe8807
desktop: Don't unwrap url to file path conversion
...
It might not succeed.
This unwrap crashes the newgrounds Meat Boy flash on desktop.
Instead, use unwrap_or_default with an empty path. This will cause
the read to fail, but it's better than crashing the whole program.
2021-02-04 15:08:56 -08:00
Mike Welsh
64c0fa57bf
chore: Change dependabot schedule to weekly for JS
2021-02-04 12:03:49 -08:00
Adrian Wielgosik
1454e0d126
core: Don't copy Glyphs around; make Font methods take &self
2021-02-04 11:54:17 -08:00
dependabot-preview[bot]
56830e9d10
build(deps-dev): bump webpack from 5.20.1 to 5.20.2 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.20.1 to 5.20.2.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.20.1...v5.20.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-04 11:32:02 -08:00
dependabot-preview[bot]
46195fab02
build(deps-dev): bump html-webpack-plugin from 4.5.1 to 5.0.0 in /web
...
Bumps [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin ) from 4.5.1 to 5.0.0.
- [Release notes](https://github.com/jantimon/html-webpack-plugin/releases )
- [Changelog](https://github.com/jantimon/html-webpack-plugin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jantimon/html-webpack-plugin/compare/v4.5.1...v5.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-04 11:31:48 -08:00
dependabot-preview[bot]
8bc7cf0358
build(deps-dev): bump chai from 4.2.0 to 4.3.0 in /web
...
Bumps [chai](https://github.com/chaijs/chai ) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/chaijs/chai/releases )
- [Changelog](https://github.com/chaijs/chai/blob/master/History.md )
- [Commits](https://github.com/chaijs/chai/compare/4.2.0...4.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-04 11:29:36 -08:00
dependabot-preview[bot]
dd4860c469
build(deps): bump encoding_rs from 0.8.26 to 0.8.28
...
Bumps [encoding_rs](https://github.com/hsivonen/encoding_rs ) from 0.8.26 to 0.8.28.
- [Release notes](https://github.com/hsivonen/encoding_rs/releases )
- [Commits](https://github.com/hsivonen/encoding_rs/compare/v0.8.26...v0.8.28 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-04 11:22:31 -08:00
dependabot-preview[bot]
a6132a504b
build(deps): bump image from 0.23.12 to 0.23.13
...
Bumps [image](https://github.com/image-rs/image ) from 0.23.12 to 0.23.13.
- [Release notes](https://github.com/image-rs/image/releases )
- [Changelog](https://github.com/image-rs/image/blob/master/CHANGES.md )
- [Commits](https://github.com/image-rs/image/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-04 11:21:41 -08:00
Adrian Wielgosik
d78e4e5e00
Core: Avoid framerate dropping down 5x if frames can't be handled in time.
2021-02-03 17:04:03 -08:00
Adrian Wielgosik
ac47b56fef
chore: Revert "build(deps): bump quick-xml from 0.20.0 to 0.21.0"
...
This reverts commit 0c6c339a64
.
2021-02-03 14:36:13 -08:00
relrelb
26d3179afe
ci: Fix web build
2021-02-03 11:10:00 -08:00
dependabot-preview[bot]
0c6c339a64
build(deps): bump quick-xml from 0.20.0 to 0.21.0
...
Bumps [quick-xml](https://github.com/tafia/quick-xml ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/tafia/quick-xml/releases )
- [Changelog](https://github.com/tafia/quick-xml/blob/master/Changelog.md )
- [Commits](https://github.com/tafia/quick-xml/compare/v0.20.0...v0.21.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-03 11:09:26 -08:00
dependabot-preview[bot]
2e821d9959
build(deps-dev): bump webpack from 5.19.0 to 5.20.1 in /web
...
Bumps [webpack](https://github.com/webpack/webpack ) from 5.19.0 to 5.20.1.
- [Release notes](https://github.com/webpack/webpack/releases )
- [Commits](https://github.com/webpack/webpack/compare/v5.19.0...v5.20.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-03 11:09:08 -08:00
Mike Welsh
47f0f980b8
core: Handle PlaceObject tags with malformed clip actions
...
Some SWFs in the wild have PlaceObject tags with ending ClipActions
that are 2 bytes instead of the required 4 bytes (see #2899 ).
Swallow the error in this case so that the tag can run.
2021-02-02 23:56:48 -08:00
dependabot-preview[bot]
8fc37f364f
build(deps): bump nellymoser-rs from `6cc9051` to `77000f7`
...
Bumps [nellymoser-rs](https://github.com/ruffle-rs/nellymoser ) from `6cc9051` to `77000f7`.
- [Release notes](https://github.com/ruffle-rs/nellymoser/releases )
- [Commits](6cc9051aee...77000f763b
)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-02 23:56:34 -08:00
Mike Welsh
48e1afc054
webgl: Use highp precision when available
...
Fixes issues relating to text rendering (#900 ) and other artifacts
on iOS.
2021-02-02 16:14:15 -08:00
relrelb
59966348c6
ci: Fix publish AUR package job
2021-02-02 10:58:25 -08:00
paq
48d59c0340
chore: Minor refactor names.rs
2021-02-02 10:16:41 -08:00
relrelb
074731e1a4
audio: Add Nellymoser support
2021-02-02 00:41:01 -08:00
Adrian Wielgosik
2c2a9367ae
avm1: Respect case-(in)sensitivity in text bindings
...
Fixes #3031 .
2021-02-01 18:09:32 -08:00
Mike Welsh
02d99c3686
core: CSMTextSettings tag alters text hit testing
...
Normally, a hit test on static text will consider the text glyphs.
However, a CSMTextSettings tag can change the text to use the
"advanced rendering engine", which causes hit tests to only consider
the bounds. This is toggled by the "Anti-alias for readibility"
setting in the Flash IDE.
Wire up the CSMTextSettings tag and adjust hit test behavior based
on this flag.
Fixes #2987 .
2021-02-01 17:17:41 -08:00
relrelb
5783021d99
ci: Publish nightly builds to the AUR
...
Add a new job to release_nightly.yml that updates the AUR package
https://aur.archlinux.org/packages/ruffle-nightly-bin/ on nightly
basis.
2021-02-01 14:24:17 -08:00
Mike Welsh
07ab770d4c
web: Fix panning of mono sounds ( fix #3017 )
2021-02-01 13:18:24 -08:00