Re: [AD] 4.3.0 progress

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


On 2006-07-23, AJ <aj@xxxxxxxxxx> wrote:
> msvc8 on winXP.
> 
> 
> 
> accelerated features as listed in the  /test/test.exe
> are not being detected, i dont seem to have any.

Thanks for noticing. 

The problem was that the function gfx_directx_enable_acceleration was
setting the gfx_capabilities variable, but it wasn't being picked up in
the new display code.

The attached patch fixes it.  I will commit it with Evert's ok.

Later we should probably get rid of gfx_capability and replace it by a
macro like this:

    #define gfx_capability \
	(al_main_display \
	    ? al_main_display->gfx_capabilities \
	    : some_dummy_variable)

Peter
Index: src/display.c
===================================================================
--- src/display.c	(revision 7371)
+++ src/display.c	(working copy)
@@ -682,8 +682,6 @@
       display->gfx_capabilities = 0;
    }
 
-   display->gfx_capabilities = 0;
-
    _set_current_refresh_rate(0);
 
    /* return to text mode? */
@@ -780,6 +778,8 @@
    gfx_driver = display->gfx_driver;
 
    /* set the basic capabilities of the driver */
+   display->gfx_capabilities = gfx_capabilities;
+
    if ((VIRTUAL_W > SCREEN_W) || (VIRTUAL_H > SCREEN_H)) {
       if (display->gfx_driver->scroll)
 	 display->gfx_capabilities |= GFX_CAN_SCROLL;


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