xserver-multidpi/hw
Jon TURNEY e3cfeb949a hw/xwin: printf format fixes for WPARAM and LPARAM types
Some Win32 API types are different fundamental types in the 32-bit and 64-bit

This problem is then further compounded by the fact that whilst both 32-bit
Cygwin and 32-bit MinGW use the ILP32 data model, 64-bit MinGW uses the LLP64
data model, but 64-bit Cygwin uses the LP64 data model.

This makes it impossible to write printf format specifiers which are correct for
all those targets, so we use some macros to provide the correct specifier for
the target.

LPARAM and WPARAM are integer types which can contain a pointer

LPARAM is long in ILP32 and long long in LLP64
WPARAM is unsigned int in ILP32 and unsigned long long in LLP64

Generally, these are just used to passs integer parameters, so for simplicity,
cast to int and use an int-compatible format

In the specific case of WM_CHANGECBCHAIN, they are used to pass HWND, so cast to
that type and print using an appropriate format.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2015-07-07 16:52:50 +01:00
..
dmx Convert hw/dmx to new *allocarray functions 2015-04-21 16:58:08 -07:00
kdrive cursor: drop ARGB_CURSOR 2015-06-30 12:17:51 +10:00
vfb Convert hw/xnest & hw/vfb to new *allocarray functions 2015-04-21 16:58:08 -07:00
xfree86 xserver: fix build with glamor disabled. 2015-07-06 12:01:33 -07:00
xnest Merge remote-tracking branch 'jturney/mingw-build-fixes' 2015-05-11 15:36:53 -07:00
xquartz Merge remote-tracking branch 'airlied/for-keithp' 2015-06-29 21:04:53 -07:00
xwayland glamor: add support for allocating linear buffers (v2) 2015-06-30 12:17:55 +10:00
xwin hw/xwin: printf format fixes for WPARAM and LPARAM types 2015-07-07 16:52:50 +01:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00