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.
This commit is contained in:
parent
c4f5b7aba0
commit
c2470d39fc
|
@ -197,9 +197,10 @@ fn run_player(opt: Opt) -> Result<(), Box<dyn std::error::Error>> {
|
||||||
WindowBuilder::new()
|
WindowBuilder::new()
|
||||||
.with_title(format!("Ruffle - {}", window_title))
|
.with_title(format!("Ruffle - {}", window_title))
|
||||||
.with_window_icon(Some(icon))
|
.with_window_icon(Some(icon))
|
||||||
.with_inner_size(movie_size)
|
.with_max_inner_size(LogicalSize::new(i16::MAX, i16::MAX))
|
||||||
.build(&event_loop)?,
|
.build(&event_loop)?,
|
||||||
);
|
);
|
||||||
|
window.set_inner_size(movie_size);
|
||||||
let viewport_size = window.inner_size();
|
let viewport_size = window.inner_size();
|
||||||
|
|
||||||
let audio: Box<dyn AudioBackend> = match audio::CpalAudioBackend::new() {
|
let audio: Box<dyn AudioBackend> = match audio::CpalAudioBackend::new() {
|
||||||
|
|
Loading…
Reference in New Issue