mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-25 06:01:00 +03:00
win7 uses soft rendering by default (#10139)
win7 vm got black screen on remote window with texture rendering Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -222,6 +222,11 @@ extern "C"
|
||||
return IsWindowsServer();
|
||||
}
|
||||
|
||||
bool is_windows_10_or_greater()
|
||||
{
|
||||
return IsWindows10OrGreater();
|
||||
}
|
||||
|
||||
HANDLE LaunchProcessWin(LPCWSTR cmd, DWORD dwSessionId, BOOL as_user, DWORD *pDwTokenPid)
|
||||
{
|
||||
HANDLE hProcess = NULL;
|
||||
|
||||
@@ -479,6 +479,7 @@ extern "C" {
|
||||
fn selectInputDesktop() -> BOOL;
|
||||
fn inputDesktopSelected() -> BOOL;
|
||||
fn is_windows_server() -> BOOL;
|
||||
fn is_windows_10_or_greater() -> BOOL;
|
||||
fn handleMask(
|
||||
out: *mut u8,
|
||||
mask: *const u8,
|
||||
@@ -1559,6 +1560,11 @@ pub fn is_win_server() -> bool {
|
||||
unsafe { is_windows_server() > 0 }
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_win_10_or_greater() -> bool {
|
||||
unsafe { is_windows_10_or_greater() > 0 }
|
||||
}
|
||||
|
||||
pub fn bootstrap() {
|
||||
if let Ok(lic) = get_license_from_exe_name() {
|
||||
*config::EXE_RENDEZVOUS_SERVER.write().unwrap() = lic.host.clone();
|
||||
|
||||
Reference in New Issue
Block a user