force redraw with boxing/maintas
This commit is contained in:
parent
e32bf1032f
commit
4725035462
2 changed files with 9 additions and 4 deletions
8
ddraw.rc
8
ddraw.rc
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue