I think it is better to replace the whole macros in ddcomimpl.h with inline functions. This is also what Alexandre asked for some time ago, but I was too lazy to implement it
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:wine-patches- > [EMAIL PROTECTED] On Behalf Of Michael Karcher > Sent: Sunday, August 10, 2008 4:20 PM > To: [EMAIL PROTECTED] > Subject: [PATCH 04/10] ddraw/dsurface_thunks: Add typesafe inline > conversion functions. > > These are going to replace the CONVERT/CONVERT_REV macros. > --- > dlls/ddraw/surface_thunks.c | 54 > +++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 54 insertions(+), 0 deletions(-)