mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
update 'needsstretching' variable memory location and set icon for taskbar
This commit is contained in:
parent
34985f9021
commit
4fa437a1b9
11
main.c
11
main.c
@ -25,6 +25,8 @@
|
|||||||
#include "surface.h"
|
#include "surface.h"
|
||||||
#include "clipper.h"
|
#include "clipper.h"
|
||||||
|
|
||||||
|
#define IDR_MYMENU 93
|
||||||
|
|
||||||
/* from mouse.c */
|
/* from mouse.c */
|
||||||
BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint);
|
BOOL WINAPI fake_GetCursorPos(LPPOINT lpPoint);
|
||||||
void mouse_init(HWND);
|
void mouse_init(HWND);
|
||||||
@ -217,6 +219,14 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
|
|||||||
}
|
}
|
||||||
|
|
||||||
mouse_unlock();
|
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)
|
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);
|
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;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ static unsigned char getPixel(int x, int y)
|
|||||||
|
|
||||||
int* InMovie = (int*)0x00665F58;
|
int* InMovie = (int*)0x00665F58;
|
||||||
int* IsVQA640 = (int*)0x0065D7BC;
|
int* IsVQA640 = (int*)0x0065D7BC;
|
||||||
BYTE* ShouldStretch = (BYTE*)0x00711015;
|
BYTE* ShouldStretch = (BYTE*)0x006ED235;
|
||||||
|
|
||||||
BOOL detect_cutscene()
|
BOOL detect_cutscene()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user