From a0be30da79e35e7d503c6eeb9021c2f63beb2176 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sun, 22 Oct 2006 16:40:11 +0300 Subject: [PATCH] DeviceAbs{Area,Calib}: properly align 32-bit types Decorate CARD32s and INT32s with B32. --- XIproto.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/XIproto.h b/XIproto.h index e3c6d6b..36b5a49 100644 --- a/XIproto.h +++ b/XIproto.h @@ -1294,25 +1294,25 @@ typedef struct { typedef struct { CARD16 control B16; CARD16 length B16; - INT32 min_x; - INT32 max_x; - INT32 min_y; - INT32 max_y; - CARD32 flip_x; - CARD32 flip_y; - CARD32 rotation; - CARD32 button_threshold; + INT32 min_x B32; + INT32 max_x B32; + INT32 min_y B32; + INT32 max_y B32; + CARD32 flip_x B32; + CARD32 flip_y B32; + CARD32 rotation B32; + CARD32 button_threshold B32; } xDeviceAbsCalibState; typedef struct { CARD16 control B16; CARD16 length B16; - CARD32 offset_x; - CARD32 offset_y; - CARD32 width; - CARD32 height; - CARD32 screen; - CARD32 following; + CARD32 offset_x B32; + CARD32 offset_y B32; + CARD32 width B32; + CARD32 height B32; + CARD32 screen B32; + CARD32 following B32; } xDeviceAbsAreaState; typedef struct {