[gtk-vnc] Remove a few uses of stdint in favour of glib int types
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Remove a few uses of stdint in favour of glib int types
- Date: Wed, 14 Jul 2010 14:02:37 +0000 (UTC)
commit b803687c4bb0027dc668219f3352ee75b4720b61
Author: Daniel P. Berrange <dan berrange com>
Date: Wed Jul 14 13:31:51 2010 +0100
Remove a few uses of stdint in favour of glib int types
src/vncconnection.c | 2 +-
src/vncconnectionblt.h | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index 03197de..027a7f1 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -2124,7 +2124,7 @@ static void vnc_connection_read_tpixel(VncConnection *conn, guint8 *pixel)
VncConnectionPrivate *priv = conn->priv;
if (priv->fmt.depth == 24) {
- uint32_t val;
+ guint32 val;
vnc_connection_read(conn, pixel, 3);
val = (pixel[0] << priv->fmt.red_shift)
| (pixel[1] << priv->fmt.green_shift)
diff --git a/src/vncconnectionblt.h b/src/vncconnectionblt.h
index 3e5c1d7..705e2e9 100644
--- a/src/vncconnectionblt.h
+++ b/src/vncconnectionblt.h
@@ -24,9 +24,9 @@
*/
#define SPLICE_I(a, b) a ## b
#define SPLICE(a, b) SPLICE_I(a, b)
-#define src_pixel_t SPLICE(SPLICE(uint, SRC), _t)
-#define ssrc_pixel_t SPLICE(SPLICE(int, SRC), _t)
-#define dst_pixel_t SPLICE(SPLICE(uint, DST), _t)
+#define src_pixel_t SPLICE(guint, SRC)
+#define ssrc_pixel_t SPLICE(gint, SRC)
+#define dst_pixel_t SPLICE(guint, DST)
#define SUFFIX() SPLICE(SRC,SPLICE(x,DST))
#define RICH_CURSOR_BLIT SPLICE(vnc_connection_rich_cursor_blt_, SUFFIX())
#define TIGHT_COMPUTE_PREDICTED SPLICE(vnc_connection_tight_compute_predicted_, SUFFIX())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]