[AD] GDI patch merge & status of Mingw32 port.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I recently tested Eric's GDI update (wgdi1b.diff) and checked out if Allegro
still compiles fine with the latest Mingw32 file releases from Sourceforge.

The GDI updates worked fine and I've committed them to CVS since they give a
much better behaviour in GFX_GDI than before. I only detected one minor
problem: If you shake the window enough the mouse pointer will leave artifacts
on the window. Solution: If possible, the mouse pointer should be disabled when
the window is beeing moved. Only detecting whether or not the mouse pointer is
inside the window is not sufficient.

Compiling Allegro with the newest development release of Mingw32 still works.
The packages should ideally install nicely when unzipped or untarred to the
root mingw directory but they do not. A little juggling around and installing
of DirectX SDK 7.0 and it were working fine. I only received one warning when I
tried to compile Allegro with it:

gcc -Wall -Wno-unused -mpentium -O2 -funroll-loops -ffast-math
-fomit-frame-pointer -fno-strength-reduce -I. -I./include -o
obj/mingw32/alleg/setup.o -c setup/s etup.c In file included from
./include/allegro/aintwin.h:38, from setup/setup.c:27:        
C:/DEVELOP/MINGW32/BIN/../lib/gcc-lib/mingw32/2.95.2/../../../../include/ddraw.h
                 :146: warning: redefinition of `HMONITOR'                 
C:/DEVELOP/MINGW32/BIN/../lib/gcc-lib/mingw32/2.95.2/../../../../include/windef.
                 h:171: warning: `HMONITOR' previously declared here           
C:/DEVELOP/MINGW32/BIN/../lib/gcc-lib/mingw32/2.95.2/../../../../include/ddraw.h
                 :206: warning: redefinition of `HRESULT'                 
C:/DEVELOP/MINGW32/BIN/../lib/gcc-lib/mingw32/2.95.2/../../../../include/windef.
                 h:149: warning: `HRESULT' previously declared here

Shouldn't be too hard to fix. Besides that the new gcc release (cc1.exe
module) were constantly giving me 'invalid page fault' errors. but restarting
make a couple of times did the trick. WINDRES were working fine despite what
was reposted on [AL] some days ago.

Besides that I corrected a little problem that I introduced when I was
cleaning up warnings earlier. i've replaced #ifndef DIRECTDRAW_VERSION ->
#define DIRECTXDRAW_VERSION 0x0300 with #ifdef DIRECTDRAW_VERSION -> #undef
DIRECTDRAW_VERSION -> #define DIRECTDRAW_VERSION 0x0300 in src/win/wddraw.h
Now Allegro should be backwards compatible with DirectX 3 again. Sorry for
screwing up that in the first place.

--
Sincerely Henrik Stokseth.
----------------------------------------------------------------------------
"Linux is keyboard friendly. I don't smash it like I used to with Windows."
Homepage: http://hstokset.n3.net  E-mail: hstokset@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/