Re: [AD] Re: CVS: allegro/demo demo.c,1.23,1.24

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


> I want to propose the attached patch instead, which I think is the 
> recommended way to handle page flipping.

While I'm at it, I might as well fix the exupdate example in the same 
way...

Evert
--- allegro/examples/exupdate.c	2002-10-03 09:39:06.000000000 +0200
+++ alleg_work/examples/exupdate.c	2004-07-11 18:30:59.000000000 +0200
@@ -201,7 +201,11 @@
 
    set_color_depth(bpp);
 
+#ifdef ALLEGRO_VRAM_SINGLE_SURFACE
+   if (set_gfx_mode(card, w, h, w, num_pages*h) != 0) {
+#else
    if (set_gfx_mode(card, w, h, 0, 0) != 0) {
+#endif
       set_gfx_mode(GFX_TEXT, 0, 0, 0, 0);
       allegro_message("Error setting graphics mode\n%s\n", allegro_error);
       return 1;


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