comparison Gui/interface.c @ 10272:7b0bc557987b

renames: DATADIR->MPLAYER_DATADIR, CONFDIR->MPLAYER_CONFDIR, LIBDIR->MPLAYER_LIBDIR
author arpi
date Mon, 09 Jun 2003 12:15:48 +0000
parents f0bcaf5ea675
children 57bdcdb061d7
comparison
equal deleted inserted replaced
10271:f0e14d641160 10272:7b0bc557987b
186 gtkInit(); 186 gtkInit();
187 // --- initialize X 187 // --- initialize X
188 wsXInit( (void *)mDisplay ); 188 wsXInit( (void *)mDisplay );
189 // --- load skin 189 // --- load skin
190 skinDirInHome=get_path("Skin"); 190 skinDirInHome=get_path("Skin");
191 skinMPlayerDir=DATADIR "/Skin"; 191 skinMPlayerDir=MPLAYER_DATADIR "/Skin";
192 printf("SKIN dir 1: '%s'\n",skinDirInHome); 192 printf("SKIN dir 1: '%s'\n",skinDirInHome);
193 printf("SKIN dir 2: '%s'\n",skinMPlayerDir); 193 printf("SKIN dir 2: '%s'\n",skinMPlayerDir);
194 if ( !skinName ) skinName=strdup( "default" ); 194 if ( !skinName ) skinName=strdup( "default" );
195 switch ( skinRead( skinName ) ) 195 switch ( skinRead( skinName ) )
196 { 196 {
403 { 403 {
404 font_name=gstrdup( get_path( "font/font.desc" ) ); 404 font_name=gstrdup( get_path( "font/font.desc" ) );
405 vo_font=read_font_desc( font_name,font_factor,0 ); 405 vo_font=read_font_desc( font_name,font_factor,0 );
406 if ( !vo_font ) 406 if ( !vo_font )
407 { 407 {
408 gfree( (void **)&font_name ); font_name=gstrdup( DATADIR"/font/font.desc" ); 408 gfree( (void **)&font_name ); font_name=gstrdup(MPLAYER_DATADIR "/font/font.desc" );
409 vo_font=read_font_desc( font_name,font_factor,0 ); 409 vo_font=read_font_desc( font_name,font_factor,0 );
410 } 410 }
411 } 411 }
412 #endif 412 #endif
413 } 413 }