[Spice-devel] [PATCH spice-gtk] main: copy the right nth monitor config
Marc-André Lureau
marcandre.lureau at gmail.com
Thu Mar 28 11:27:04 PDT 2013
i is our counter for c->display[]
---
gtk/channel-main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gtk/channel-main.c b/gtk/channel-main.c
index 1bdacb7..b041349 100644
--- a/gtk/channel-main.c
+++ b/gtk/channel-main.c
@@ -1066,10 +1066,10 @@ gboolean spice_main_send_monitor_config(SpiceMainChannel *channel)
continue;
}
mon->monitors[j].depth = c->display_color_depth ? c->display_color_depth : 32;
- mon->monitors[j].width = c->display[j].width;
- mon->monitors[j].height = c->display[j].height;
- mon->monitors[j].x = c->display[j].x;
- mon->monitors[j].y = c->display[j].y;
+ mon->monitors[j].width = c->display[i].width;
+ mon->monitors[j].height = c->display[i].height;
+ mon->monitors[j].x = c->display[i].x;
+ mon->monitors[j].y = c->display[i].y;
CHANNEL_DEBUG(channel, "monitor config: #%d %dx%d+%d+%d @ %d bpp", j,
mon->monitors[j].width, mon->monitors[j].height,
mon->monitors[j].x, mon->monitors[j].y,
--
1.8.1.1.439.g50a6b54
More information about the Spice-devel
mailing list