[Spice-devel] [PATCH spice-gtk] Use given color depth in monitor configuration

Hans de Goede hdegoede at redhat.com
Sat Mar 17 00:40:36 PDT 2012


Ack.

On 03/16/2012 11:48 PM, Marc-André Lureau wrote:
> The main channel only relied on
> VD_AGENT_DISPLAY_CONFIG_FLAG_SET_COLOR_DEPTH to set color depth when
> connecting to a guest. However, that doesn't seem to be
> enough. Instead send given color depth with monitor configuration.
>
> Fix --spice-color-depth option not "apparently" working.
> ---
>   gtk/channel-main.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/gtk/channel-main.c b/gtk/channel-main.c
> index bd64662..efb551e 100644
> --- a/gtk/channel-main.c
> +++ b/gtk/channel-main.c
> @@ -838,7 +838,7 @@ gboolean spice_main_send_monitor_config(SpiceMainChannel *channel)
>       for (i = 0; i<  SPICE_N_ELEMENTS(c->display); i++) {
>           if (!c->display[i].enabled)
>               continue;
> -        mon->monitors[j].depth  = 32;
> +        mon->monitors[j].depth  = c->display_color_depth;
>           mon->monitors[j].width  = c->display[j].width;
>           mon->monitors[j].height = c->display[j].height;
>           mon->monitors[j].x = c->display[j].x;


More information about the Spice-devel mailing list