-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows.c
82 lines (57 loc) · 1.24 KB
/
windows.c
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
Won't work and even compile
*/
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <ddrawex.h>
#include "globals.h"
int initsys(void) {
/* HRESULT hr;
IDirectDraw *pDD;
IDirectDraw3 *pDD3;
IDirectDrawFactory *pDDF;
CoInitialize(NULL);
CoCreateInstance(CLSID_DirectDrawFactory, NULL, CLSCTX_INPROC_SERVER,
IID_IDirectDrawFactory, (void **)&pDDF);
hr = (pDDF->CreateDirectDraw(NULL, GetDesktopWindow(), DDSCL_NORMAL,
NULL, NULL, &pDD));
if (hr !=DD_OK) {
}
hr =(pDD->QueryInterface(IID_IDirectDraw3, (LPVOID*)&pDD3));
if (hr !=S_OK) {
}
pDD->Release();
pDD= NULL;
ZeroMemory(&ddsd, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd);
ddsd.dwFlags = DDSD_CAPS;
ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
hr = pDD3->CreateSurface(&ddsd, &pPrimarySurface, NULL);
pDD3->Release();
pDDF->Release();
pPrimarySurface->Release();
CoUninitialize();
*/
return 0;
}
unsigned long int GB_STDPAL[4];
int resolution=0;
int doublesize=0;
void vramdump(tilescreen,dataofs)
int tilescreen;
int dataofs;
{
tilescreen=0;
dataofs=0;
return;
}
void drawscreen(void) {
}
void joypad(void) {
}
void donesys(void) {
}
ulong color_translate(uint gbcol) {
return 0L;
}