[5330] | 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 |
|
---|
[5344] | 14 | #ifdef __cplusplus
|
---|
| 15 | extern "C" {
|
---|
| 16 | #endif
|
---|
| 17 |
|
---|
[5330] | 18 | ULONG APIENTRY Gre32Entry3(ULONG,ULONG,ULONG);
|
---|
| 19 |
|
---|
| 20 | inline 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 |
|
---|
| 31 | ULONG APIENTRY Gre32Entry5(ULONG,ULONG,ULONG,ULONG,ULONG);
|
---|
| 32 |
|
---|
| 33 | inline 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 |
|
---|
[5344] | 49 |
|
---|
| 50 | #ifdef __cplusplus
|
---|
| 51 | }
|
---|
| 52 | #endif
|
---|
| 53 |
|
---|
[5330] | 54 | ULONG SetSVGAMode (ULONG ulHorRes,
|
---|
| 55 | ULONG ulVerRes,
|
---|
| 56 | ULONG ulColors,
|
---|
| 57 | ULONG ulVerRefr,
|
---|
| 58 | PULONG pulModeInd,
|
---|
| 59 | PVOID pCLUTData);
|
---|
| 60 |
|
---|
| 61 | ULONG LoadPMIService (VOID);
|
---|
| 62 |
|
---|
| 63 | ULONG SetUpModeTable (VOID);
|
---|
| 64 |
|
---|
| 65 | ULONG SetSVGAPalette (PVOID pal);
|
---|
| 66 |
|
---|
| 67 | VOID RestorePM(VOID);
|
---|
| 68 |
|
---|
| 69 | VOID KillPM(VOID);
|
---|
| 70 |
|
---|
| 71 | ULONG FreeModeTable (VOID);
|
---|
| 72 |
|
---|
| 73 | BOOL ModeInSVGAModeTable(ULONG resX,ULONG resY, ULONG bpp);
|
---|
| 74 |
|
---|
[5344] | 75 | #endif /* __OS2FSDD__ */
|
---|