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

Last change on this file since 10367 was 3345, checked in by mike, 25 years ago

Experimental fullscreen DDraw

File size: 1.4 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
14ULONG APIENTRY Gre32Entry3(ULONG,ULONG,ULONG);
15
16inline 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
27ULONG APIENTRY Gre32Entry5(ULONG,ULONG,ULONG,ULONG,ULONG);
28
29inline 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
45ULONG SetSVGAMode (ULONG ulHorRes,
46 ULONG ulVerRes,
47 ULONG ulColors,
48 ULONG ulVerRefr,
49 PULONG pulModeInd,
50 PVOID pCLUTData);
51
52ULONG LoadPMIService (VOID);
53
54ULONG SetUpModeTable (VOID);
55
56ULONG SetSVGAPalette (PVOID pal);
57
58VOID RestorePM(VOID);
59
60VOID KillPM(VOID);
61
62ULONG FreeModeTable (VOID);
63
64BOOL ModeInSVGAModeTable(ULONG resX,ULONG resY, ULONG bpp);
65
66#endif /* __OS2FSDD__ */
Note: See TracBrowser for help on using the repository browser.