mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
parent
f9f4b6fb00
commit
b747448330
@ -9,4 +9,5 @@ namespace Config
|
||||
const int delayedFlipModeTimeout = 200;
|
||||
const int maxPaletteUpdatesPerMs = 5;
|
||||
const int minExpectedFlipsPerSec = 5;
|
||||
const int virtualScreenBufferExtraRows = 2;
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <set>
|
||||
|
||||
#include "Config/Config.h"
|
||||
#include "Common/ScopedCriticalSection.h"
|
||||
#include "D3dDdi/Device.h"
|
||||
#include "D3dDdi/ScopedCriticalSection.h"
|
||||
@ -229,8 +230,8 @@ namespace Gdi
|
||||
CloseHandle(g_surfaceFileMapping);
|
||||
}
|
||||
|
||||
g_surfaceFileMapping = CreateFileMapping(
|
||||
INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0, g_pitch * g_height, nullptr);
|
||||
g_surfaceFileMapping = CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0,
|
||||
g_pitch * (g_height + Config::virtualScreenBufferExtraRows), nullptr);
|
||||
g_surfaceView = MapViewOfFile(g_surfaceFileMapping, FILE_MAP_WRITE, 0, 0, 0);
|
||||
|
||||
for (HDC dc : g_dcs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user