[AD] [WIN] windowed/overlay drivers bug

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


Hi,
While investigating on a problem raised on the main mailing-list, I found a
rather obscur bug (Allegro 3.9.34 current CVS, Mingw32): running the test
program, when you successively select the DirectX windowed driver with color
conversion in a 320x200 window then the overlay driver (matching color
depths mandatory) in a same sized window, the computer freezes.
The (very small) fix is attached.

--
Eric Botcazou (ebotcazou@xxxxxxxxxx)
Web Site: http://www.multimania.com/ebotcazou

--- /allegro/src/win/wddwin.c	Thu Dec  7 10:18:38 2000
+++ /allegro/src/win/wddwin.c	Thu Dec 21 13:01:48 2000
@@ -840,6 +840,7 @@
    /* destroy the offscreen backbuffer used in windowed mode */
    gfx_directx_destroy_surf(dd_offscreen);
    dd_offscreen = NULL;
+   pseudo_screen = NULL;
 
    /* destroy the pre-converted offscreen buffer */
    gfx_directx_destroy_surf(dd_preconverted_offscreen);


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