Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize render target when window size is not specified on Windows #1575

Merged
merged 1 commit into from
Feb 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions druid-shell/src/platform/windows/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,10 @@ impl WndProc for MyWndProc {

let handle = self.handle.borrow().to_owned();
state.handler.connect(&handle.into());

if let Err(e) = state.rebuild_render_target(&self.d2d_factory, scale) {
error!("error building render target: {}", e);
}
}
Some(0)
}
Expand Down