1 | /*
|
---|
2 | * Few routines for full-screen DirectDraw on OS/2
|
---|
3 | *
|
---|
4 | * Copyright 2000 Michal Necasek
|
---|
5 | * Copyright 2000 Przemyslaw Dobrowolski
|
---|
6 | *
|
---|
7 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
8 | *
|
---|
9 | */
|
---|
10 |
|
---|
11 | #ifndef __OS2FSDD__
|
---|
12 | #define __OS2FSDD__
|
---|
13 |
|
---|
14 | ULONG APIENTRY Gre32Entry3(ULONG,ULONG,ULONG);
|
---|
15 |
|
---|
16 | inline ULONG APIENTRY _Gre32Entry3 (ULONG a, ULONG b, ULONG c)
|
---|
17 | {
|
---|
18 | ULONG yyrc;
|
---|
19 | USHORT sel = RestoreOS2FS();
|
---|
20 |
|
---|
21 | yyrc = Gre32Entry3(a,b,c);
|
---|
22 | SetFS(sel);
|
---|
23 |
|
---|
24 | return yyrc;
|
---|
25 | }
|
---|
26 |
|
---|
27 | ULONG APIENTRY Gre32Entry5(ULONG,ULONG,ULONG,ULONG,ULONG);
|
---|
28 |
|
---|
29 | inline ULONG APIENTRY _Gre32Entry5 (ULONG a, ULONG b, ULONG c, ULONG d, ULONG e)
|
---|
30 | {
|
---|
31 | ULONG yyrc;
|
---|
32 | USHORT sel = RestoreOS2FS();
|
---|
33 |
|
---|
34 | yyrc = Gre32Entry5(a,b,c,d,e);
|
---|
35 | SetFS(sel);
|
---|
36 |
|
---|
37 | return yyrc;
|
---|
38 | }
|
---|
39 |
|
---|
40 | #define NGreDeath 0x000040B7L
|
---|
41 | #define GreDeath(a) (BOOL) _Gre32Entry3((HDC)(a),0L,NGreDeath)
|
---|
42 | #define NGreResurrection 0x000040B8L
|
---|
43 | #define GreResurrection(a,b,c) (BOOL) _Gre32Entry5((HDC)(a),(LONG)(b),(c),0L,NGreResurrection)
|
---|
44 |
|
---|
45 | ULONG SetSVGAMode (ULONG ulHorRes,
|
---|
46 | ULONG ulVerRes,
|
---|
47 | ULONG ulColors,
|
---|
48 | ULONG ulVerRefr,
|
---|
49 | PULONG pulModeInd,
|
---|
50 | PVOID pCLUTData);
|
---|
51 |
|
---|
52 | ULONG LoadPMIService (VOID);
|
---|
53 |
|
---|
54 | ULONG SetUpModeTable (VOID);
|
---|
55 |
|
---|
56 | ULONG SetSVGAPalette (PVOID pal);
|
---|
57 |
|
---|
58 | VOID RestorePM(VOID);
|
---|
59 |
|
---|
60 | VOID KillPM(VOID);
|
---|
61 |
|
---|
62 | ULONG FreeModeTable (VOID);
|
---|
63 |
|
---|
64 | BOOL ModeInSVGAModeTable(ULONG resX,ULONG resY, ULONG bpp);
|
---|
65 |
|
---|
66 | #endif /* __OS2FSDD__ */
|
---|