[Xcb-commit] xlibtoxcbtranslationguide.mdwn

XCB site xcb at freedesktop.org
Mon Jun 30 14:15:51 PDT 2008


 xlibtoxcbtranslationguide.mdwn |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit f3bb03a2d5c56a9ff6546e82f8786734f2afeb66
Author: XCB site <xcb at freedesktop.org>
Date:   Mon Jun 30 14:15:50 2008 -0700

    web commit by nocbos

diff --git a/xlibtoxcbtranslationguide.mdwn b/xlibtoxcbtranslationguide.mdwn
index 56d5f95..4d9c0e7 100644
--- a/xlibtoxcbtranslationguide.mdwn
+++ b/xlibtoxcbtranslationguide.mdwn
@@ -1,4 +1,3 @@
-
 # 18. Translation of basic Xlib functions and macros
 
 The problem when you want to port an Xlib program to XCB is that you don't know if the Xlib function that you want to "translate" is a X Window one or an Xlib macro. In that section, we describe a way to translate the usual functions or macros that Xlib provides. It's usually just a member of a structure.
@@ -359,7 +358,7 @@ It is the width in pixels of the screen that you want, and which is in the struc
                   xcb_connection_t *c;
                   xcb_screen_t     *screen;
                   int               screen_nbr;
-                  uint32_t          width_in_pixels = 0;    /* the returned width in pixels */
+                  uint16_t          width_in_pixels = 0;    /* the returned width in pixels */
 
                   /* you init the connection and screen_nbr */
 
@@ -376,7 +375,7 @@ It is the height in pixels of the screen that you want, and which is in the stru
                   xcb_connection_t *c;
                   xcb_screen_t     *screen;
                   int               screen_nbr;
-                  uint32_t          height_in_pixels = 0;    /* the returned height in pixels */
+                  uint16_t          height_in_pixels = 0;    /* the returned height in pixels */
 
                   /* you init the connection and screen_nbr */
 


More information about the xcb-commit mailing list