Re: [AD] [ alleg-Bugs-1254999 ] Screen gets turned off until reboot (DGA+ATI only?) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
As a result of this bug-report, I think we should apply the attached
patch, which simply disables auto-detection of the DGA driver, for
4.2.0.
--
Elias Pschernig
Only in src/x: CVS
diff -rup ../allegro-4.2.0/src/x/xdga2.c src/x/xdga2.c
--- ../allegro-4.2.0/src/x/xdga2.c 2005-03-27 23:08:08.000000000 +0200
+++ src/x/xdga2.c 2005-08-09 21:25:54.000000000 +0200
@@ -1100,8 +1100,8 @@ static void _xaccel_masked_blit(BITMAP *
void _module_init(int system_driver)
{
if (system_driver != SYSTEM_XWINDOWS) return;
- _unix_register_gfx_driver(GFX_XDGA2_SOFT, &gfx_xdga2_soft, TRUE, TRUE);
- _unix_register_gfx_driver(GFX_XDGA2, &gfx_xdga2, TRUE, TRUE);
+ _unix_register_gfx_driver(GFX_XDGA2_SOFT, &gfx_xdga2_soft, FALSE, FALSE);
+ _unix_register_gfx_driver(GFX_XDGA2, &gfx_xdga2, FALSE, FALSE);
}
#endif
diff -rup ../allegro-4.2.0/src/x/xgfxdrv.c src/x/xgfxdrv.c
--- ../allegro-4.2.0/src/x/xgfxdrv.c 2004-10-16 21:45:40.000000000 +0200
+++ src/x/xgfxdrv.c 2005-08-09 21:25:42.000000000 +0200
@@ -106,8 +106,8 @@ static GFX_DRIVER gfx_xwin_fullscreen =
_DRIVER_INFO _xwin_gfx_driver_list[] =
{
#if (defined ALLEGRO_XWINDOWS_WITH_XF86DGA2) && (!defined ALLEGRO_WITH_MODULES)
- { GFX_XDGA2, &gfx_xdga2, TRUE },
- { GFX_XDGA2_SOFT, &gfx_xdga2_soft, TRUE },
+ { GFX_XDGA2, &gfx_xdga2, FALSE },
+ { GFX_XDGA2_SOFT, &gfx_xdga2_soft, FALSE },
#endif
#ifdef ALLEGRO_XWINDOWS_WITH_XF86VIDMODE
{ GFX_XWINDOWS_FULLSCREEN, &gfx_xwin_fullscreen, TRUE },