Hello,
the attached patch and source files contain a workaround for building
pygame with MMX scaling support for 64-bit Windows using Visual
Studio and mingw-64-bit.
When compiling scale_mmx.c without -D_NO_MMX_FOR_X86_64 using the
64-bit Visual Studio compiler the file scale_mmx64_msvc.c is
included, which has all asm code replaced by function calls. The asm
containing functions are implemented in scale_mmx64_gcc.c, which can
be compiled independently with mingw-64-bit:
x86_64-w64-mingw32-gcc.exe -c src/scale_mmx64_gcc.c
-fno-leading-underscore -o obj/win64/scale_mmx64_gcc.obj
The resulting scale_mmx64_gcc.obj is then linked during the MSVC
build process.
The patch should not interfere with other compilers (not verified).
It is just a workaround until mingw-64-bit has support for using the
msvc9 runtime. It is probably not a good idea to apply the patch to
the main trunk since it duplicates code.
The resulting 1.9.2pre binaries pass all tests, except
freetype_font_test.
The patch also tries to import vidcap from the VideoCapture package.
Christoph