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:
MrCheeze 2021-01-10 16:22:49 -05:00 committed by Mike Welsh
parent c4f5b7aba0
commit c2470d39fc
1 changed files with 2 additions and 1 deletions

View File

@ -197,9 +197,10 @@ fn run_player(opt: Opt) -> Result<(), Box<dyn std::error::Error>> {
WindowBuilder::new()
.with_title(format!("Ruffle - {}", window_title))
.with_window_icon(Some(icon))
.with_inner_size(movie_size)
.with_max_inner_size(LogicalSize::new(i16::MAX, i16::MAX))
.build(&event_loop)?,
);
window.set_inner_size(movie_size);
let viewport_size = window.inner_size();
let audio: Box<dyn AudioBackend> = match audio::CpalAudioBackend::new() {