aalib 1.4.X incombatibility fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1578 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
folke 2001-08-17 20:34:58 +00:00
parent 7fbab24262
commit 7f48ad2bdb
1 changed files with 3 additions and 5 deletions

View File

@ -218,6 +218,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width,
struct stat sbuf;
char * hidis = NULL;
int i;
extern aa_linkedlist *aa_displayrecommended;
switch(format) {
case IMGFMT_BGR24:
@ -240,10 +241,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width,
/* 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<vt> */
/* check only, if no driver is explicit set */
@ -261,7 +259,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width,
aa_recommendhidisplay("curses");
aa_recommendhidisplay("X11");
}else fclose(fp);
}
} else aa_recommendhidisplay(hidis);
c = aa_autoinit(&aa_defparams);
aa_resizehandler(c, (void *)resize);