[AD] Patch to afinfo.c

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


In attached file, there is a little diff against afinfo.c to wipeout that
confusing message "..must be root.." under X when I'm root.

Stepan Roh
--- afinfo.c.orig	Sun Jan 30 22:46:56 2000
+++ afinfo.c	Thu Feb  3 23:27:28 2000
@@ -737,6 +737,12 @@
 
    allegro_init();
 
+   #ifdef ALLEGRO_WITH_XWINDOWS
+      if (system_driver->id == SYSTEM_XWINDOWS) {
+         allegro_message ("Sorry, VBE/AF is not available under X, run AFINFO from Linux console\n");
+         return 1;
+      }
+   #endif
    #ifdef ALLEGRO_LINUX
       if (!__al_linux_have_ioperms) {
 	 printf("Sorry, you need to be root before you can do stuff with VBE/AF\n");


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