[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Thu, 11 Jan 2001, I wrote:
> Ok, here's another try: now ...
Ooops... I forgot that GFX_SAFE can fail too. This should be applied on
top of my last patch:
--- demo.c.old Fri Jan 12 21:33:54 2001
+++ demo.c Fri Jan 12 21:34:46 2001
@@ -2020,7 +2020,10 @@
fade_out(4);
#endif
- set_gfx_mode(GFX_SAFE, 320, 200, 0, 0);
+ if (set_gfx_mode(GFX_SAFE, 320, 200, 0, 0) != 0) {
+ allegro_message("Error setting graphics mode\n%s\n", allegro_error);
+ exit(1);
+ }
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/