# HG changeset patch # User folke # Date 998080498 0 # Node ID 440782e33c81a6149a65cb60f270dec30c1d1027 # Parent 2dff06ebfbb402fee158e6367f12af59d09d0525 aalib 1.4.X incombatibility fixed diff -r 2dff06ebfbb4 -r 440782e33c81 libvo/vo_aa.c --- a/libvo/vo_aa.c Fri Aug 17 14:53:11 2001 +0000 +++ b/libvo/vo_aa.c Fri Aug 17 20:34:58 2001 +0000 @@ -218,6 +218,7 @@ struct stat sbuf; char * hidis = NULL; int i; + extern aa_linkedlist *aa_displayrecommended; switch(format) { case IMGFMT_BGR24: @@ -240,10 +241,7 @@ /* initializing of aalib */ - /* why removes get after getting it the gotten value out of the list? :( */ - //hidis=aa_getfirst(&aa_displayrecommended); - if (aa_displayrecommended!=NULL) - hidis=aa_displayrecommended->text; + hidis=aa_getfirst(&aa_displayrecommended); if ( hidis==NULL ){ /* check /dev/vcsa */ /* check only, if no driver is explicit set */ @@ -261,7 +259,7 @@ aa_recommendhidisplay("curses"); aa_recommendhidisplay("X11"); }else fclose(fp); - } + } else aa_recommendhidisplay(hidis); c = aa_autoinit(&aa_defparams); aa_resizehandler(c, (void *)resize);