Visualge V3.0 fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
OBJSUFF=obj
|
OBJSUFF=obj
|
||||||
SRCSUFF=cpp
|
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
|
OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
|
||||||
OS2LIBFLAGS=/NOL /NOE
|
OS2LIBFLAGS=/NOL /NOE
|
||||||
OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
|
OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
|
||||||
@@ -111,6 +111,23 @@ LIBOBJECTS = \
|
|||||||
wrffrdat.obj \
|
wrffrdat.obj \
|
||||||
wrffri.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):
|
$(LIBOBJECTS):
|
||||||
copy ..\xpm\$D\attrib.obj
|
copy ..\xpm\$D\attrib.obj
|
||||||
copy ..\xpm\$D\crbuffri.obj
|
copy ..\xpm\$D\crbuffri.obj
|
||||||
@@ -132,20 +149,3 @@ $(LIBOBJECTS):
|
|||||||
copy ..\xpm\$D\wrffrdat.obj
|
copy ..\xpm\$D\wrffrdat.obj
|
||||||
copy ..\xpm\$D\wrffri.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
|
|
||||||
|
|
||||||
|
@@ -317,11 +317,8 @@ XpmCreateXpmImageFromImage(display, image, shapeimage,
|
|||||||
storePixel);
|
storePixel);
|
||||||
# endif /* AMIGA */
|
# endif /* AMIGA */
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
ErrorStatus = MSWGetImagePixels(display, image, width, height, &pmap,
|
ErrorStatus = MSWGetImagePixels(display, image, width, height, &pmap,
|
||||||
storePixel);
|
storePixel);
|
||||||
/* calling convention all messed up OS/2 -- figure out later */
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -989,9 +986,18 @@ AGetImagePixels (
|
|||||||
#else /* ndef FOR_MSW */
|
#else /* ndef FOR_MSW */
|
||||||
|
|
||||||
#ifdef __OS2__
|
#ifdef __OS2__
|
||||||
/* Visual Age cannot deal with old, non-ansi, code */
|
|
||||||
static int
|
#ifdef __VISAGECPP30__
|
||||||
MSWGetImagePixels(
|
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
|
Display* display
|
||||||
, XImage* image
|
, XImage* image
|
||||||
, unsigned int width
|
, unsigned int width
|
||||||
@@ -999,6 +1005,8 @@ MSWGetImagePixels(
|
|||||||
, PixelsMap* pmap
|
, PixelsMap* pmap
|
||||||
, int (*storeFunc) ()
|
, int (*storeFunc) ()
|
||||||
)
|
)
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
static int
|
static int
|
||||||
MSWGetImagePixels(display, image, width, height, pmap, storeFunc)
|
MSWGetImagePixels(display, image, width, height, pmap, storeFunc)
|
||||||
|
Reference in New Issue
Block a user