[gtk-vnc] Change vnc_connection_framebuffer_update_request to use boolean
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Change vnc_connection_framebuffer_update_request to use boolean
- Date: Tue, 6 Jul 2010 13:37:02 +0000 (UTC)
commit 8f1062f6681d3a4e250d2f8b475bf571b8cff33e
Author: Daniel P. Berrange <dan berrange com>
Date: Mon Jul 5 21:51:31 2010 +0100
Change vnc_connection_framebuffer_update_request to use boolean
Use a boolean for the incremental parameter in the
vnc_connection_framebuffer_update_request API
src/vncconnection.c | 6 +++---
src/vncconnection.h | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index cc30db8..e4f6b38 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -1469,14 +1469,14 @@ gboolean vnc_connection_set_encodings(VncConnection *conn, int n_encoding, gint3
gboolean vnc_connection_framebuffer_update_request(VncConnection *conn,
- guint8 incremental,
+ gboolean incremental,
guint16 x, guint16 y,
guint16 width, guint16 height)
{
VNC_DEBUG("Requesting framebuffer update at %d,%d size %dx%d, incremental %d",
- x, y, width, height, incremental);
+ x, y, width, height, (int)incremental);
vnc_connection_buffered_write_u8(conn, 3);
- vnc_connection_buffered_write_u8(conn, incremental);
+ vnc_connection_buffered_write_u8(conn, incremental ? 1 : 0);
vnc_connection_buffered_write_u16(conn, x);
vnc_connection_buffered_write_u16(conn, y);
vnc_connection_buffered_write_u16(conn, width);
diff --git a/src/vncconnection.h b/src/vncconnection.h
index 6f5f7b1..5023f80 100644
--- a/src/vncconnection.h
+++ b/src/vncconnection.h
@@ -172,7 +172,7 @@ gboolean vnc_connection_key_event(VncConnection *conn, gboolean down_flag,
guint32 key, guint16 scancode);
gboolean vnc_connection_framebuffer_update_request(VncConnection *conn,
- guint8 incremental,
+ gboolean incremental,
guint16 x, guint16 y,
guint16 width, guint16 height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]