[Spice-commits] gtk/channel-main.c
Marc-André Lureau
elmarco at kemper.freedesktop.org
Thu Mar 28 16:43:58 PDT 2013
gtk/channel-main.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit f61dc5a574509b7aa1a5312522aa233992158105
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Thu Mar 28 20:23:58 2013 +0200
main: copy the right nth monitor config
i is our counter for c->display[]
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,
More information about the Spice-commits
mailing list