[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Is exaccel.c meant to have the #ifdef ALLEGRO_VRAM_SINGLE_SURFACE
special case? See the patch.
Peter
Index: examples/exaccel.c
===================================================================
RCS file: /cvsroot/alleg/allegro/examples/exaccel.c,v
retrieving revision 1.8
diff -u -r1.8 exaccel.c
--- examples/exaccel.c 13 Nov 2004 22:13:14 -0000 1.8
+++ examples/exaccel.c 25 Jan 2005 23:22:06 -0000
@@ -75,8 +75,12 @@
install_keyboard();
install_timer();
- /* very high res video mode */
+ /* see comments in exflip.c */
+#ifdef ALLEGRO_VRAM_SINGLE_SURFACE
+ if (set_gfx_mode(GFX_AUTODETECT, 1024, 768, 0, 2 * 768 + 200) != 0) {
+#else
if (set_gfx_mode(GFX_AUTODETECT, 1024, 768, 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;