X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0fc1a7137cccc829a34b3527c768db7d7ac83437..e828e4f7f10ae3ce6c4575011564c457b02e57c3:/utils/ogl/src/mfutils.h diff --git a/utils/ogl/src/mfutils.h b/utils/ogl/src/mfutils.h index 00117940ee..b070e1781d 100644 --- a/utils/ogl/src/mfutils.h +++ b/utils/ogl/src/mfutils.h @@ -19,7 +19,7 @@ #include -#ifndef __WXMSW__ +#ifndef GetRValue #define GetRValue(rgb) ((unsigned char)(rgb)) #define GetGValue(rgb) ((unsigned char)(((int)(rgb)) >> 8)) #define GetBValue(rgb) ((unsigned char)((rgb)>>16)) @@ -27,7 +27,7 @@ /* Metafile Functions */ /* Win32s/Borland need these macros, although META_SETBKCOLOR is defined */ -#if !defined(META_SETBKCOLOR) || defined(WIN32) +#if 1 // !defined(META_SETBKCOLOR) // || defined(WIN32) #define META_SETBKCOLOR 0x0201 #define META_SETBKMODE 0x0102 @@ -129,7 +129,7 @@ /* PitchAndFamily family values (high 4 bits) */ /* Win32s/Borland don't need this */ -#if !defined(__BORLANDC__) && !defined(WIN32) +#ifndef FF_DONTCARE // !defined(__BORLANDC__) && !defined(WIN32) #define FF_DONTCARE 0x00 #define FF_ROMAN 0x10 #define FF_SWISS 0x20 @@ -183,15 +183,15 @@ class wxMetaRecord: public wxObject class wxXMetaFile: public wxObject { public: - float lastX; - float lastY; + double lastX; + double lastY; bool ok; - float left; - float top; - float right; - float bottom; - + double left; + double top; + double right; + double bottom; + wxList metaRecords; wxList gdiObjects; // List of wxMetaRecord objects created with Create..., // referenced by position in list by SelectObject