source: trunk/src/ddraw/os2fsdd.h@ 10367

Last change on this file since 10367 was 5344, checked in by mike, 24 years ago

Cleaned up DDRAW for Watcom

File size: 1.5 KB
Line 
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#ifdef __cplusplus
15extern "C" {
16#endif
17
18ULONG APIENTRY Gre32Entry3(ULONG,ULONG,ULONG);
19
20inline ULONG APIENTRY _Gre32Entry3 (ULONG a, ULONG b, ULONG c)
21{
22 ULONG yyrc;
23 USHORT sel = RestoreOS2FS();
24
25 yyrc = Gre32Entry3(a,b,c);
26 SetFS(sel);
27
28 return yyrc;
29}
30
31ULONG APIENTRY Gre32Entry5(ULONG,ULONG,ULONG,ULONG,ULONG);
32
33inline ULONG APIENTRY _Gre32Entry5 (ULONG a, ULONG b, ULONG c, ULONG d, ULONG e)
34{
35 ULONG yyrc;
36 USHORT sel = RestoreOS2FS();
37
38 yyrc = Gre32Entry5(a,b,c,d,e);
39 SetFS(sel);
40
41 return yyrc;
42}
43
44#define NGreDeath 0x000040B7L
45#define GreDeath(a) (BOOL) _Gre32Entry3((HDC)(a),0L,NGreDeath)
46#define NGreResurrection 0x000040B8L
47#define GreResurrection(a,b,c) (BOOL) _Gre32Entry5((HDC)(a),(LONG)(b),(c),0L,NGreResurrection)
48
49
50#ifdef __cplusplus
51}
52#endif
53
54ULONG SetSVGAMode (ULONG ulHorRes,
55 ULONG ulVerRes,
56 ULONG ulColors,
57 ULONG ulVerRefr,
58 PULONG pulModeInd,
59 PVOID pCLUTData);
60
61ULONG LoadPMIService (VOID);
62
63ULONG SetUpModeTable (VOID);
64
65ULONG SetSVGAPalette (PVOID pal);
66
67VOID RestorePM(VOID);
68
69VOID KillPM(VOID);
70
71ULONG FreeModeTable (VOID);
72
73BOOL ModeInSVGAModeTable(ULONG resX,ULONG resY, ULONG bpp);
74
75#endif /* __OS2FSDD__ */
Note: See TracBrowser for help on using the repository browser.