-
Notifications
You must be signed in to change notification settings - Fork 2
/
header.h
40 lines (35 loc) · 925 Bytes
/
header.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <windows.h>
struct SDLGDIALOG_CACHE_ENTRY {
HWND hwnd;
DWORD cy; // height
DWORD cx; // width
DWORD y;
DWORD x;
};
struct BITMAPINFO256
{
BITMAPINFOHEADER h;
RGBQUAD palette[256];
};
// display.cpp
extern HWND hwnd_main;
extern BOOL IsWindowed;
extern WORD prtscn_toggle;
extern BYTE* dib_bits;
extern __declspec(align(128)) BYTE client_bits[640*480];
extern BITMAPINFO256 bmi;
//
HRESULT init( HWND hwnd );
void cleanup( void );
HRESULT lock( LONG* pitch, void** surf_bits );
void unlock( void* surface );
void set_palette( PALETTEENTRY* color_table_256 );
BOOL SetResolution_640x480(void);
void d3d_reset(void);
// image_helpers.cpp
void __cdecl color_convert( BYTE* src, RGBQUAD* pal, DWORD* dst, DWORD cnt );
void __stdcall multiblt( DWORD pitch, DWORD* d3d_bits );
// wndproc.cpp
void HookWndProcs( HWND hwnd );
extern DWORD SDlgDialog_count;
extern SDLGDIALOG_CACHE_ENTRY SDlgDialog_cache[16];