mirror of https://github.com/FreeRDP/FreeRDP
Merge pull request #10416 from akallabeth/shadow-gfx-off
[server,shadow] add option to disable GFX
This commit is contained in:
commit
75cda00be3
|
@ -80,6 +80,8 @@ int main(int argc, char** argv)
|
|||
"Kerberos host ccache file for NLA authentication" },
|
||||
{ "tls-secrets-file", COMMAND_LINE_VALUE_REQUIRED, "<file>", NULL, NULL, -1, NULL,
|
||||
"file where tls secrets shall be stored" },
|
||||
{ "gfx", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
||||
"Allow GFX pipeline" },
|
||||
{ "gfx-progressive", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
||||
"Allow GFX progressive codec" },
|
||||
{ "gfx-rfx", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL,
|
||||
|
|
|
@ -221,7 +221,9 @@ static BOOL shadow_client_context_new(freerdp_peer* peer, rdpContext* context)
|
|||
return FALSE;
|
||||
if (!freerdp_settings_set_bool(settings, FreeRDP_SurfaceFrameMarkerEnabled, TRUE))
|
||||
return FALSE;
|
||||
if (!freerdp_settings_set_bool(settings, FreeRDP_SupportGraphicsPipeline, TRUE))
|
||||
if (!freerdp_settings_set_bool(
|
||||
settings, FreeRDP_SupportGraphicsPipeline,
|
||||
freerdp_settings_get_bool(srvSettings, FreeRDP_SupportGraphicsPipeline)))
|
||||
return FALSE;
|
||||
if (!freerdp_settings_set_bool(settings, FreeRDP_GfxH264,
|
||||
freerdp_settings_get_bool(srvSettings, FreeRDP_GfxH264)))
|
||||
|
|
|
@ -412,6 +412,12 @@ int shadow_server_parse_command_line(rdpShadowServer* server, int argc, char** a
|
|||
if (!WLog_AddStringLogFilters(arg->Value))
|
||||
return COMMAND_LINE_ERROR;
|
||||
}
|
||||
CommandLineSwitchCase(arg, "gfx")
|
||||
{
|
||||
if (!freerdp_settings_set_bool(settings, FreeRDP_SupportGraphicsPipeline,
|
||||
arg->Value ? TRUE : FALSE))
|
||||
return COMMAND_LINE_ERROR;
|
||||
}
|
||||
CommandLineSwitchCase(arg, "gfx-progressive")
|
||||
{
|
||||
if (!freerdp_settings_set_bool(settings, FreeRDP_GfxProgressive,
|
||||
|
|
Loading…
Reference in New Issue