--- sourceforge.net/trunk/rdesktop/types.h 2001/06/20 13:54:48 28 +++ sourceforge.net/trunk/rdesktop/types.h 2003/01/30 11:15:00 299 @@ -1,7 +1,7 @@ /* rdesktop: A Remote Desktop Protocol client. Common data types - Copyright (C) Matthew Chapman 1999-2000 + Copyright (C) Matthew Chapman 1999-2002 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,8 +26,11 @@ #endif typedef unsigned char uint8; +typedef signed char sint8; typedef unsigned short uint16; +typedef signed short sint16; typedef unsigned int uint32; +typedef signed int sint32; typedef void *HBITMAP; typedef void *HGLYPH; @@ -40,14 +43,16 @@ uint8 green; uint8 blue; -} COLOURENTRY; +} +COLOURENTRY; typedef struct _COLOURMAP { uint16 ncolours; COLOURENTRY *colours; -} COLOURMAP; +} +COLOURMAP; typedef struct _BOUNDS { @@ -56,7 +61,8 @@ uint16 right; uint16 bottom; -} BOUNDS; +} +BOUNDS; typedef struct _PEN { @@ -64,7 +70,8 @@ uint8 width; uint8 colour; -} PEN; +} +PEN; typedef struct _BRUSH { @@ -73,21 +80,31 @@ uint8 style; uint8 pattern[8]; -} BRUSH; +} +BRUSH; typedef struct _FONTGLYPH { - uint16 offset; - uint16 baseline; + sint16 offset; + sint16 baseline; uint16 width; uint16 height; HBITMAP pixmap; -} FONTGLYPH; +} +FONTGLYPH; typedef struct _DATABLOB { void *data; int size; -} DATABLOB; +} +DATABLOB; + +typedef struct _key_translation +{ + uint8 scancode; + uint16 modifiers; +} +key_translation;