comparison libvo/vo_directx.c @ 33584:deedeb235cac

Simplify code for printing display adapter list.
author reimar
date Sun, 19 Jun 2011 18:31:45 +0000
parents 8e70a224c411
children 1f6ff1848bd3
comparison
equal deleted inserted replaced
33583:a39c61198f93 33584:deedeb235cac
375 vo_w32_uninit(); 375 vo_w32_uninit();
376 } 376 }
377 377
378 static BOOL WINAPI EnumCallbackEx(GUID FAR *lpGUID, LPSTR lpDriverDescription, LPSTR lpDriverName, LPVOID lpContext, HMONITOR hm) 378 static BOOL WINAPI EnumCallbackEx(GUID FAR *lpGUID, LPSTR lpDriverDescription, LPSTR lpDriverName, LPVOID lpContext, HMONITOR hm)
379 { 379 {
380 mp_msg(MSGT_VO, MSGL_INFO ,"<vo_directx> adapter %d: ", adapter_count);
381
382 if (!lpGUID) 380 if (!lpGUID)
383 { 381 lpDriverDescription = "Primary Display Adapter";
384 mp_msg(MSGT_VO, MSGL_INFO ,"%s", "Primary Display Adapter"); 382 mp_msg(MSGT_VO, MSGL_INFO ,"<vo_directx> adapter %d: %s", adapter_count, lpDriverDescription);
385 }
386 else
387 {
388 mp_msg(MSGT_VO, MSGL_INFO ,"%s", lpDriverDescription);
389 }
390 383
391 if(adapter_count == vo_adapter_num){ 384 if(adapter_count == vo_adapter_num){
392 MONITORINFO mi; 385 MONITORINFO mi;
393 if (!lpGUID) 386 if (!lpGUID)
394 selected_guid_ptr = NULL; 387 selected_guid_ptr = NULL;