mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
25 lines
413 B
C++
25 lines
413 B
C++
#pragma once
|
|
|
|
#define CINTERFACE
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#include <ddraw.h>
|
|
#include <Windows.h>
|
|
|
|
namespace CompatGdiDcCache
|
|
{
|
|
struct CachedDc
|
|
{
|
|
IDirectDrawSurface7* surface;
|
|
HDC dc;
|
|
DWORD cacheId;
|
|
};
|
|
|
|
void clear();
|
|
CachedDc getDc();
|
|
bool init();
|
|
void releaseDc(const CachedDc& cachedDc);
|
|
void setDdLockThreadId(DWORD ddLockThreadId);
|
|
void setSurfaceMemory(void* surfaceMemory, LONG pitch);
|
|
}
|