mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-10 01:11:27 +03:00
fix, win, change resolution
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
@@ -1917,6 +1917,7 @@ pub(super) fn change_resolution_directly(
|
|||||||
let device_name = str_to_device_name(name);
|
let device_name = str_to_device_name(name);
|
||||||
unsafe {
|
unsafe {
|
||||||
let mut dm: DEVMODEW = std::mem::zeroed();
|
let mut dm: DEVMODEW = std::mem::zeroed();
|
||||||
|
dm.dmSize = std::mem::size_of::<DEVMODEW>() as _;
|
||||||
dm.dmPelsWidth = width as _;
|
dm.dmPelsWidth = width as _;
|
||||||
dm.dmPelsHeight = height as _;
|
dm.dmPelsHeight = height as _;
|
||||||
dm.dmFields = DM_PELSHEIGHT | DM_PELSWIDTH;
|
dm.dmFields = DM_PELSHEIGHT | DM_PELSWIDTH;
|
||||||
|
|||||||
Reference in New Issue
Block a user