1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

force redraw with boxing/maintas

This commit is contained in:
FunkyFr3sh 2018-03-23 00:35:19 +01:00
parent e32bf1032f
commit 4725035462
2 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,6 @@
1 VERSIONINFO
FILEVERSION 1,1,6,0
PRODUCTVERSION 1,1,6,0
FILEVERSION 1,1,6,1
PRODUCTVERSION 1,1,6,1
{
BLOCK "StringFileInfo"
{
@ -8,13 +8,13 @@ PRODUCTVERSION 1,1,6,0
{
VALUE "CompanyName", "cncnet.org"
VALUE "FileDescription", "DirectDraw replacement for C&C95 and Red Alert"
VALUE "FileVersion", "1.1.6.0"
VALUE "FileVersion", "1.1.6.1"
VALUE "InternalName", "ddraw"
VALUE "LegalCopyright", "Copyright (c) 2010-2018"
VALUE "LegalTrademarks", ""
VALUE "OriginalFileName", "ddraw.dll"
VALUE "ProductName", "DirectDraw replacement for C&C95 and Red Alert"
VALUE "ProductVersion", "1.1.6.0"
VALUE "ProductVersion", "1.1.6.1"
VALUE "Comments", "https://cncnet.org"
}
}

View File

@ -441,6 +441,11 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
mouse_lock();
}
if(This->boxing || This->maintas)
{
RedrawWindow(This->hWnd, NULL, NULL, RDW_ERASE | RDW_INVALIDATE);
}
if(This->render.thread == NULL)
{
This->render.thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)This->renderer, NULL, 0, NULL);