[AD] Small demo fix

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


Hi.

Since the GFX_SAFE will not be done for the demo, it should be changed to
GFX_AUTODETECT. Otherwise, framebuffer users won't see anything. Or maybe
for two chained GFX_AUTODETECT, but you get the idea.

Index: demo/demo.c
===================================================================
RCS file: /cvsroot/alleg/allegro/demo/demo.c,v
retrieving revision 1.4
diff -u -r1.4 demo.c
--- demo/demo.c 2000/08/28 01:27:26     1.4
+++ demo/demo.c 2001/01/05 21:45:43
@@ -2014,7 +2014,7 @@
         fade_out(4);
    #endif

-   set_gfx_mode(GFX_SAFE, 320, 200, 0, 0);
+   set_gfx_mode(GFX_AUTODETECT, 320, 200, 0, 0);

    get_executable_name(buf, sizeof(buf));
    replace_filename(buf2, buf, "demo.dat", sizeof(buf2));

 Grzegorz Adam Hankiewicz   gradha@xxxxxxxxxx - http://gradha.infierno.org
 Other web pages:  http://glub.ehu.es/  -  http://welcome.to/gogosoftware/



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