Get device name from local value for vdisplay
This commit is contained in:
@@ -290,7 +290,6 @@ bool setRenderAdapterByName(const std::wstring& adapterName) {
|
||||
std::wstring createVirtualDisplay(
|
||||
const char* s_client_uid,
|
||||
const char* s_client_name,
|
||||
const char* s_app_name,
|
||||
uint32_t width,
|
||||
uint32_t height,
|
||||
uint32_t fps,
|
||||
@@ -300,14 +299,6 @@ std::wstring createVirtualDisplay(
|
||||
return std::wstring();
|
||||
}
|
||||
|
||||
if (!s_app_name || !strlen(s_app_name) || !strcmp(s_app_name, "unknown")) {
|
||||
s_app_name = "ApolloVDisp";
|
||||
}
|
||||
|
||||
if (!s_client_name || !strlen(s_client_name) || !strcmp(s_client_name, "unknown")) {
|
||||
s_client_name = s_app_name;
|
||||
}
|
||||
|
||||
VIRTUAL_DISPLAY_ADD_OUT output;
|
||||
if (!AddVirtualDisplay(SUDOVDA_DRIVER_HANDLE, width, height, fps, guid, s_client_name, s_client_uid, output)) {
|
||||
printf("[SUDOVDA] Failed to add virtual display.\n");
|
||||
|
||||
@@ -35,7 +35,6 @@ namespace VDISPLAY {
|
||||
std::wstring createVirtualDisplay(
|
||||
const char* s_client_uid,
|
||||
const char* s_client_name,
|
||||
const char* s_app_name,
|
||||
uint32_t width,
|
||||
uint32_t height,
|
||||
uint32_t fps,
|
||||
|
||||
Reference in New Issue
Block a user