From e0bbbcfa838acbdf0e676273e945a029b2ac27f5 Mon Sep 17 00:00:00 2001 From: faust3 Date: Sun, 2 Jan 2005 16:44:44 +0000 Subject: [PATCH] win95 fix fix by Rune Petersen git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14303 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_directx.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index d20619fe85..ab1b9f6f6e 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -380,13 +380,10 @@ static BOOL WINAPI EnumCallbackEx(GUID FAR *lpGUID, LPSTR lpDriverDescription, L selected_guid_ptr = &selected_guid; } mi.cbSize = sizeof(mi); - if(myGetMonitorInfo){ + if (myGetMonitorInfo(hm, &mi)) { monitor_rect = mi.rcMonitor; } - }else{ - mp_msg(MSGT_VO, MSGL_ERR, "-adapter is not supported on Win95\n"); - } mp_msg(MSGT_VO, MSGL_INFO ,"\t\t<--"); } mp_msg(MSGT_VO, MSGL_INFO ,"\n"); @@ -405,7 +402,11 @@ static uint32_t Directx_InitDirectDraw() HINSTANCE user32dll=LoadLibrary("user32.dll"); if(user32dll){ - myGetMonitorInfo=GetProcAddress(user32dll,"GetMonitorInfo"); + myGetMonitorInfo=GetProcAddress(user32dll,"GetMonitorInfoA"); + if(!myGetMonitorInfo && vo_adapter_num){ + mp_msg(MSGT_VO, MSGL_ERR, " -adapter is not supported on Win95\n"); + vo_adapter_num = 0; + } } mp_msg(MSGT_VO, MSGL_DBG3,"Initing DirectDraw\n" ); -- 2.11.4.GIT