Blame SOURCES/0002-Fix-inverted-args-when-creating-framebuffer-for-test.patch

249a24
From 871f698cfdd4a7a43e3a155e2b31a13bf54a3cc5 Mon Sep 17 00:00:00 2001
249a24
From: "Daniel P. Berrange" <berrange@redhat.com>
249a24
Date: Thu, 6 Apr 2017 17:18:33 +0100
249a24
Subject: [PATCH] Fix inverted args when creating framebuffer for test suite
249a24
249a24
The local & remote format args were inverted in the test
249a24
suite. This is currently harmless since we are not trying
249a24
to validate the rendered framebuffer content.
249a24
249a24
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
249a24
(cherry picked from commit 1f508111add33f0e4ceb4425132777d781974730)
249a24
---
249a24
 src/vncconnectiontest.c | 3 +--
249a24
 1 file changed, 1 insertion(+), 2 deletions(-)
249a24
249a24
diff --git a/src/vncconnectiontest.c b/src/vncconnectiontest.c
249a24
index 6a5e49c..7caaa6e 100644
249a24
--- a/src/vncconnectiontest.c
249a24
+++ b/src/vncconnectiontest.c
249a24
@@ -187,8 +187,7 @@ static void test_helper_desktop_resize(VncConnection *conn,
249a24
     test->pixels = g_new0(guint8, width * height * 4);
249a24
 
249a24
     fb = vnc_base_framebuffer_new(test->pixels, width, height, width * 4,
249a24
-                                  remoteFormat,
249a24
-                                  &localFormat);
249a24
+                                  &localFormat, remoteFormat);
249a24
 
249a24
     vnc_connection_set_framebuffer(conn, VNC_FRAMEBUFFER(fb));
249a24