diff --git a/ddraw.dll b/ddraw.dll index 6cd981e..e4fd344 100644 Binary files a/ddraw.dll and b/ddraw.dll differ diff --git a/main.c b/main.c index 16317a3..eefaaf5 100644 --- a/main.c +++ b/main.c @@ -25,6 +25,8 @@ #include "surface.h" #include "clipper.h" +#define IDR_MYMENU 93 + /* from mouse.c */ BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint); void mouse_init(HWND); @@ -217,6 +219,14 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD } mouse_unlock(); + + const HANDLE hbicon = LoadImage(GetModuleHandle(0), MAKEINTRESOURCE(IDR_MYMENU), IMAGE_ICON, GetSystemMetrics(SM_CXICON), GetSystemMetrics(SM_CYICON), 0); + if (hbicon) + SendMessage(This->hWnd, WM_SETICON, ICON_BIG, (LPARAM)hbicon); + + const HANDLE hsicon = LoadImage(GetModuleHandle(0), MAKEINTRESOURCE(IDR_MYMENU), IMAGE_ICON, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0); + if (hsicon) + SendMessage(This->hWnd, WM_SETICON, ICON_SMALL, (LPARAM)hsicon); if(This->windowed) { @@ -853,5 +863,6 @@ HRESULT WINAPI DirectDrawCreate(GUID FAR* lpGUID, LPDIRECTDRAW FAR* lplpDD, IUnk printf("DirectDrawCreate: Detected cnc-plugin at window %08X in %dx%d\n", (unsigned int)This->hWnd, This->render.width, This->render.height); } + return DD_OK; } diff --git a/render_soft.c b/render_soft.c index 1a1d962..534a934 100644 --- a/render_soft.c +++ b/render_soft.c @@ -30,7 +30,7 @@ static unsigned char getPixel(int x, int y) int* InMovie = (int*)0x00665F58; int* IsVQA640 = (int*)0x0065D7BC; -BYTE* ShouldStretch = (BYTE*)0x00711015; +BYTE* ShouldStretch = (BYTE*)0x006ED235; BOOL detect_cutscene() {