Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroyuki Tanaka <myheroyuki@outlook.com>2022-11-09 18:02:28 +0300
committerHiroyuki Tanaka <myheroyuki@outlook.com>2022-11-09 18:02:28 +0300
commit9949dac90629c80417904d46bc60e30a83b3214f (patch)
tree612a001c3b01e4e237fdea202f138980e22824b0
parent0280abb81db31b120138af8d9fed78f4acecc552 (diff)
parentf21b8b65d80bdfce51462648bf0d70908f335969 (diff)
Merge branch 'Rem-2564' into 'master'
[Rem-2564] Allow for VNC runtime adjustment of color depth See merge request Remmina/Remmina!2442
-rw-r--r--plugins/vnc/vnc_plugin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/vnc/vnc_plugin.c b/plugins/vnc/vnc_plugin.c
index f98eea56c..3bc632323 100644
--- a/plugins/vnc/vnc_plugin.c
+++ b/plugins/vnc/vnc_plugin.c
@@ -46,6 +46,7 @@
#define REMMINA_PLUGIN_VNC_FEATURE_SCALE 6
#define REMMINA_PLUGIN_VNC_FEATURE_UNFOCUS 7
#define REMMINA_PLUGIN_VNC_FEATURE_TOOL_SENDCTRLALTDEL 8
+#define REMMINA_PLUGIN_VNC_FEATURE_PREF_COLOR 9
#define VNC_DEFAULT_PORT 5900
@@ -1844,6 +1845,10 @@ static void remmina_plugin_vnc_call_feature(RemminaProtocolWidget *gp, const Rem
remmina_plugin_service->file_get_int(remminafile, "colordepth", 32));
SetFormatAndEncodings((rfbClient *)(gpdata->client));
break;
+ case REMMINA_PLUGIN_VNC_FEATURE_PREF_COLOR:
+ remmina_plugin_vnc_update_colordepth((rfbClient *)(gpdata->client),
+ remmina_plugin_service->file_get_int(remminafile, "colordepth", 32));
+ SetFormatAndEncodings((rfbClient *)(gpdata->client));
case REMMINA_PLUGIN_VNC_FEATURE_PREF_VIEWONLY:
break;
case REMMINA_PLUGIN_VNC_FEATURE_PREF_DISABLESERVERINPUT:
@@ -2084,6 +2089,8 @@ static const RemminaProtocolFeature remmina_plugin_vnc_features[] =
{
{ REMMINA_PROTOCOL_FEATURE_TYPE_PREF, REMMINA_PLUGIN_VNC_FEATURE_PREF_QUALITY, GINT_TO_POINTER(REMMINA_PROTOCOL_FEATURE_PREF_RADIO), "quality",
quality_list },
+ { REMMINA_PROTOCOL_FEATURE_TYPE_PREF, REMMINA_PLUGIN_VNC_FEATURE_PREF_COLOR, GINT_TO_POINTER(REMMINA_PROTOCOL_FEATURE_PREF_RADIO), "colordepth",
+ colordepth_list },
{ REMMINA_PROTOCOL_FEATURE_TYPE_PREF, REMMINA_PLUGIN_VNC_FEATURE_PREF_VIEWONLY, GINT_TO_POINTER(REMMINA_PROTOCOL_FEATURE_PREF_CHECK), "viewonly",
N_("View only") },
{ REMMINA_PROTOCOL_FEATURE_TYPE_PREF, REMMINA_PLUGIN_VNC_FEATURE_PREF_DISABLESERVERINPUT, GINT_TO_POINTER(REMMINA_PROTOCOL_FEATURE_PREF_CHECK), "disableserverinput",N_("Prevent local interaction on the server") },