mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 10:26:19 +02:00
Merge pull request #4552 from fufesou/fix/change_resolution_win
fix, win, change resolution
This commit is contained in:
commit
f1cc42769c
1 changed files with 1 additions and 0 deletions
|
@ -1917,6 +1917,7 @@ pub(super) fn change_resolution_directly(
|
|||
let device_name = str_to_device_name(name);
|
||||
unsafe {
|
||||
let mut dm: DEVMODEW = std::mem::zeroed();
|
||||
dm.dmSize = std::mem::size_of::<DEVMODEW>() as _;
|
||||
dm.dmPelsWidth = width as _;
|
||||
dm.dmPelsHeight = height as _;
|
||||
dm.dmFields = DM_PELSHEIGHT | DM_PELSWIDTH;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue