1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

win95 fix fix by Rune Petersen <rune.mail-list at mail.tele.dk>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14303 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2005-01-02 16:44:44 +00:00
parent 47d716f101
commit e0bbbcfa83

View File

@ -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, "<vo_directx> -adapter is not supported on Win95\n");
vo_adapter_num = 0;
}
}
mp_msg(MSGT_VO, MSGL_DBG3,"<vo_directx><INFO>Initing DirectDraw\n" );