mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
[MSVIDC32]
* Sync with Wine 1.7.1. CORE-7469 svn path=/trunk/; revision=60338
This commit is contained in:
parent
03236f55bb
commit
82d7133b7d
3 changed files with 9 additions and 15 deletions
|
@ -1,19 +1,16 @@
|
|||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
|
||||
add_definitions(
|
||||
-D__WINESRC__
|
||||
-D_WINE)
|
||||
|
||||
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
||||
spec2def(msvidc32.dll msvidc32.spec)
|
||||
|
||||
list(APPEND SOURCE
|
||||
msvideo1.c
|
||||
rsrc.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/msvidc32.def)
|
||||
|
||||
add_library(msvidc32 SHARED ${SOURCE})
|
||||
|
||||
add_library(msvidc32 SHARED ${SOURCE} rsrc.rc)
|
||||
set_module_type(msvidc32 win32dll)
|
||||
target_link_libraries(msvidc32 wine)
|
||||
add_importlibs(msvidc32 user32 msvcrt kernel32 ntdll)
|
||||
|
|
|
@ -312,26 +312,26 @@ CRAM_DecompressQuery( Msvideo1Context *info, LPBITMAPINFO in, LPBITMAPINFO out )
|
|||
if( ( in->bmiHeader.biCompression != CRAM_MAGIC ) &&
|
||||
( in->bmiHeader.biCompression != MSVC_MAGIC ) &&
|
||||
( in->bmiHeader.biCompression != WHAM_MAGIC ) )
|
||||
return ICERR_UNSUPPORTED;
|
||||
return ICERR_BADFORMAT;
|
||||
|
||||
if( ( in->bmiHeader.biBitCount != 16 ) &&
|
||||
( in->bmiHeader.biBitCount != 8 ) )
|
||||
{
|
||||
TRACE("can't do %d bpp\n", in->bmiHeader.biBitCount );
|
||||
return ICERR_UNSUPPORTED;
|
||||
return ICERR_BADFORMAT;
|
||||
}
|
||||
|
||||
/* output must be same dimensions as input */
|
||||
if( out )
|
||||
{
|
||||
if( in->bmiHeader.biBitCount != out->bmiHeader.biBitCount )
|
||||
return ICERR_UNSUPPORTED;
|
||||
return ICERR_BADFORMAT;
|
||||
if( in->bmiHeader.biPlanes != out->bmiHeader.biPlanes )
|
||||
return ICERR_UNSUPPORTED;
|
||||
return ICERR_BADFORMAT;
|
||||
if( in->bmiHeader.biHeight != out->bmiHeader.biHeight )
|
||||
return ICERR_UNSUPPORTED;
|
||||
return ICERR_BADFORMAT;
|
||||
if( in->bmiHeader.biWidth != out->bmiHeader.biWidth )
|
||||
return ICERR_UNSUPPORTED;
|
||||
return ICERR_BADFORMAT;
|
||||
}
|
||||
|
||||
TRACE("OK!\n");
|
||||
|
@ -584,9 +584,6 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
|
|||
DisableThreadLibraryCalls(hModule);
|
||||
MSVIDC32_hModule = hModule;
|
||||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -129,7 +129,7 @@ reactos/dll/win32/mstask # Synced to Wine-1.7.1
|
|||
reactos/dll/win32/msvcrt20 # Out of sync
|
||||
reactos/dll/win32/msvcrt40 # Out of sync
|
||||
reactos/dll/win32/msvfw32 # Synced to Wine-1.7.1
|
||||
reactos/dll/win32/msvidc32 # Autosync
|
||||
reactos/dll/win32/msvidc32 # Synced to Wine-1.7.1
|
||||
reactos/dll/win32/msxml # Synced to Wine-1.5.19
|
||||
reactos/dll/win32/msxml2 # Synced to Wine-1.5.19
|
||||
reactos/dll/win32/msxml3 # Synced to Wine-1.5.26
|
||||
|
|
Loading…
Reference in a new issue