Skip to content

Commit

Permalink
Windows lint
Browse files Browse the repository at this point in the history
  • Loading branch information
atlanticaccent committed Nov 17, 2023
1 parent 6cd66ff commit 0bd2025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion druid-shell/src/backend/windows/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ impl WndProc for MyWndProc {
// When maximized, windows still adds offsets for the frame
// so we counteract them here.
let s: *mut NCCALCSIZE_PARAMS = lparam as *mut NCCALCSIZE_PARAMS;
if let Some(mut s) = s.as_mut() {
if let Some(s) = s.as_mut() {
let border = self.get_system_metric(SM_CXPADDEDBORDER);
let frame = self.get_system_metric(SM_CYSIZEFRAME);
s.rgrc[0].top += border + frame;
Expand Down

0 comments on commit 0bd2025

Please sign in to comment.