1
2 /*
3 Won't work and even compile
4 */
5
6 #include <windows.h>
7 #include <stdio.h>
8 #include <stdlib.h>
9
10 #include <ddrawex.h>
11
12 #include "globals.h"
13
initsys(void)14 int initsys(void) {
15
16 /* HRESULT hr;
17 IDirectDraw *pDD;
18 IDirectDraw3 *pDD3;
19 IDirectDrawFactory *pDDF;
20
21 CoInitialize(NULL);
22
23
24 CoCreateInstance(CLSID_DirectDrawFactory, NULL, CLSCTX_INPROC_SERVER,
25 IID_IDirectDrawFactory, (void **)&pDDF);
26
27 hr = (pDDF->CreateDirectDraw(NULL, GetDesktopWindow(), DDSCL_NORMAL,
28 NULL, NULL, &pDD));
29
30 if (hr !=DD_OK) {
31 }
32
33 hr =(pDD->QueryInterface(IID_IDirectDraw3, (LPVOID*)&pDD3));
34
35 if (hr !=S_OK) {
36 }
37
38 pDD->Release();
39 pDD= NULL;
40
41 ZeroMemory(&ddsd, sizeof(ddsd));
42 ddsd.dwSize = sizeof(ddsd);
43 ddsd.dwFlags = DDSD_CAPS;
44 ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
45 hr = pDD3->CreateSurface(&ddsd, &pPrimarySurface, NULL);
46
47
48 pDD3->Release();
49 pDDF->Release();
50 pPrimarySurface->Release();
51
52 CoUninitialize();
53 */
54 return 0;
55 }
56
57 unsigned long int GB_STDPAL[4];
58 int resolution=0;
59 int doublesize=0;
60
vramdump(tilescreen,dataofs)61 void vramdump(tilescreen,dataofs)
62 int tilescreen;
63 int dataofs;
64 {
65 tilescreen=0;
66 dataofs=0;
67 return;
68 }
69
drawscreen(void)70 void drawscreen(void) {
71 }
72
joypad(void)73 void joypad(void) {
74 }
75
donesys(void)76 void donesys(void) {
77 }
78
color_translate(uint gbcol)79 ulong color_translate(uint gbcol) {
80 return 0L;
81 }
82
83