[MSRLE32]

* Sync with Wine 1.7.1.
CORE-7469

svn path=/trunk/; revision=60331
This commit is contained in:
Amine Khaldi 2013-09-23 10:17:50 +00:00
parent 27fd290e99
commit 7e44da07b9
3 changed files with 5 additions and 9 deletions

View file

@ -5,11 +5,10 @@ spec2def(msrle32.dll msrle32.spec)
list(APPEND SOURCE list(APPEND SOURCE
msrle32.c msrle32.c
rsrc.rc
${CMAKE_CURRENT_BINARY_DIR}/msrle32.def) ${CMAKE_CURRENT_BINARY_DIR}/msrle32.def)
add_library(msrle32 SHARED ${SOURCE}) add_library(msrle32 SHARED ${SOURCE} rsrc.rc)
set_module_type(msrle32 win32dll) set_module_type(msrle32 win32dll)
target_link_libraries(msrle32 wine) target_link_libraries(msrle32 wine)
add_importlibs(msrle32 msvcrt winmm user32 kernel32 ntdll) add_importlibs(msrle32 winmm user32 msvcrt kernel32 ntdll)
add_cd_file(TARGET msrle32 DESTINATION reactos/system32 FOR all) add_cd_file(TARGET msrle32 DESTINATION reactos/system32 FOR all)

View file

@ -42,7 +42,7 @@ static HINSTANCE MSRLE32_hModule = 0;
#define QUALITY_to_DIST(q) (ICQUALITY_HIGH - q) #define QUALITY_to_DIST(q) (ICQUALITY_HIGH - q)
static inline WORD ColorCmp(WORD clr1, WORD clr2) static inline WORD ColorCmp(WORD clr1, WORD clr2)
{ {
register UINT a = (clr1-clr2); UINT a = clr1 - clr2;
return SQR(a); return SQR(a);
} }
static inline WORD Intensity(RGBQUAD clr) static inline WORD Intensity(RGBQUAD clr)
@ -1535,7 +1535,7 @@ static LRESULT Compress(CodecInfo *pi, ICCOMPRESS* lpic, DWORD dwSize)
{ /* swap buffer for current and previous frame */ { /* swap buffer for current and previous frame */
/* Don't free and alloc new -- costs to much time and they are of equal size ! */ /* Don't free and alloc new -- costs to much time and they are of equal size ! */
register LPWORD pTmp = pi->pPrevFrame; LPWORD pTmp = pi->pPrevFrame;
pi->pPrevFrame = pi->pCurFrame; pi->pPrevFrame = pi->pCurFrame;
pi->pCurFrame = pTmp; pi->pCurFrame = pTmp;
@ -1917,9 +1917,6 @@ BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
DisableThreadLibraryCalls(hModule); DisableThreadLibraryCalls(hModule);
MSRLE32_hModule = hModule; MSRLE32_hModule = hModule;
break; break;
case DLL_PROCESS_DETACH:
break;
} }
return TRUE; return TRUE;

View file

@ -122,7 +122,7 @@ reactos/dll/win32/msimtf # Synced to Wine-1.7.1
reactos/dll/win32/msisip # Synced to Wine-1.7.1 reactos/dll/win32/msisip # Synced to Wine-1.7.1
reactos/dll/win32/msisys.ocx # Synced to Wine-1.7.1 reactos/dll/win32/msisys.ocx # Synced to Wine-1.7.1
reactos/dll/win32/msnet32 # Synced to Wine-1.5.19 reactos/dll/win32/msnet32 # Synced to Wine-1.5.19
reactos/dll/win32/msrle32 # Autosync reactos/dll/win32/msrle32 # Synced to Wine-1.7.1
reactos/dll/win32/mssign32 # Synced to Wine-1.5.19 reactos/dll/win32/mssign32 # Synced to Wine-1.5.19
reactos/dll/win32/mssip32 # Synced to Wine-1.5.19 reactos/dll/win32/mssip32 # Synced to Wine-1.5.19
reactos/dll/win32/mstask # Synced to Wine-1.5.4 reactos/dll/win32/mstask # Synced to Wine-1.5.4