OBJSUFF=obj
SRCSUFF=cpp
-OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Dwx_msw /Ss /Q /N100
+OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Dwx_msw /Q /N100
OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
OS2LIBFLAGS=/NOL /NOE
OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
copy ..\xpm\$D\wrffrdat.obj
copy ..\xpm\$D\wrffri.obj
-all: $(OS2XPMLIB)
+all: $(OBJECTS) $(OS2XPMLIB)
$(WXDIR)\lib\os2xpm.lib: $(LIBOBJECTS)
touch $(WXDIR)\lib\os2xpm.lib
#else
-#ifndef __OS2__
ErrorStatus = MSWGetImagePixels(display, image, width, height, &pmap,
storePixel);
/* calling convention all messed up OS/2 -- figure out later */
-#endif
#endif
pixel = GetPixel(*display, x, y);
#endif
-#ifndef __OS2__
-/* calling convention all messed up under OS/2 */
if ((*storeFunc) (pixel, pmap, iptr))
return (XpmNoMemory);
-#endif
}
}
return (XpmSuccess);
#include<os2.h>
typedef unsigned long COLORREF;
// RGB under OS2 is more like a PALETTEENTRY struct under Windows so we need a real RGB def
-#define OS2RGB(r,g,b) ((ULONG ((BYTE) (r) | ((UINT) (g) << 8)) | (((ULONG)(BYTE)(b)) << 16)))
+//#define OS2RGB(r,g,b) ((ULONG ((BYTE) (r) | ((UINT) (g) << 8)) | (((ULONG)(BYTE)(b)) << 16)))
+#define OS2RGB(r,g,b) ((unsigned long)r<<16|(unsigned long)g<<8|(unsigned long)b)
+
#define GetBValue(rgb) ((BYTE)((rgb) >> 16))
#define GetGValue(rgb) ((BYTE)(((WORD)(rgb)) >> 8))
#define GetRValue(rgb) ((BYTE)(rgb))