OBJSUFF=obj
SRCSUFF=cpp
-OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /Dwx_msw /Q /N100
+OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP30__ /Dwx_msw /Q /N100
OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
OS2LIBFLAGS=/NOL /NOE
OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
wrffrdat.obj \
wrffri.obj
+all: $(OBJECTS) $(OS2XPMLIB)
+
+$(WXDIR)\lib\os2xpm.lib: $(LIBOBJECTS)
+ touch $(WXDIR)\lib\os2xpm.lib
+ del $(WXDIR)\lib\os2xpm.lib
+ ilib $(OS2LIBFLAGS) $@ @<<
+ $**;
+<<
+ del *.obj
+
+clean:
+ del $(OS2XPMLIB)
+ erase /N $(OS2XPMDIR)\$D
+ rd $(OS2XPMDIR)\$D
+
+cleanall: clean
+
$(LIBOBJECTS):
copy ..\xpm\$D\attrib.obj
copy ..\xpm\$D\crbuffri.obj
copy ..\xpm\$D\wrffrdat.obj
copy ..\xpm\$D\wrffri.obj
-all: $(OBJECTS) $(OS2XPMLIB)
-
-$(WXDIR)\lib\os2xpm.lib: $(LIBOBJECTS)
- touch $(WXDIR)\lib\os2xpm.lib
- del $(WXDIR)\lib\os2xpm.lib
- ilib $(OS2LIBFLAGS) $@ @<<
- $**;
-<<
- del *.obj
-
-clean:
- del $(OS2XPMLIB)
- erase /N $(OS2XPMDIR)\$D
- rd $(OS2XPMDIR)\$D
-
-cleanall: clean
-
/*
* scan shape mask if any
*/
- if (shapeimage)
+ if (shapeimage)
{
#ifndef FOR_MSW
# ifndef AMIGA
*
*/
- if (image)
+ if (image)
{
#ifndef FOR_MSW
# ifndef AMIGA
(image->byte_order == image->bitmap_bit_order))
ErrorStatus = GetImagePixels1(image, width, height, &pmap,
storePixel);
- else if (image->format == ZPixmap)
+ else if (image->format == ZPixmap)
{
if (image->bits_per_pixel == 8)
ErrorStatus = GetImagePixels8(image, width, height, &pmap);
ErrorStatus = GetImagePixels16(image, width, height, &pmap);
else if (image->bits_per_pixel == 32)
ErrorStatus = GetImagePixels32(image, width, height, &pmap);
- }
+ }
else
ErrorStatus = GetImagePixels(image, width, height, &pmap);
# else
storePixel);
# endif /* AMIGA */
-#else
-
ErrorStatus = MSWGetImagePixels(display, image, width, height, &pmap,
storePixel);
-/* calling convention all messed up OS/2 -- figure out later */
#endif
#else /* ndef FOR_MSW */
#ifdef __OS2__
-/* Visual Age cannot deal with old, non-ansi, code */
-static int
-MSWGetImagePixels(
+
+#ifdef __VISAGECPP30__
+static int MSWGetImagePixels(
+ Display* display
+, XImage* image
+, unsigned int width
+, unsigned int height
+, PixelsMap* pmap
+, int (*storeFunc) (Pixel, PixelsMap*, unsigned int*)
+)
+#else
+static int MSWGetImagePixels(
Display* display
, XImage* image
, unsigned int width
, PixelsMap* pmap
, int (*storeFunc) ()
)
+#endif
+
#else
static int
MSWGetImagePixels(display, image, width, height, pmap, storeFunc)