Changeset 694
- Timestamp:
- Mar 8, 2013, 1:31:30 AM (12 years ago)
- Location:
- Daodan/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/BFW_Motoko_Draw.h
r692 r694 69 69 } M3tDrawPtrState; 70 70 71 typedef struct 72 { 73 WORD data[3][256]; 74 } M3tWin32GammaRamp; 75 71 76 extern char M3gResolutionSwitch; 72 77 -
Daodan/src/Daodan.c
r693 r694 255 255 if(patch_chinese) 256 256 { 257 DDrStartupMessage("Loading chinese DLL"); 257 258 HMODULE dll = LoadLibrary("xfhsm_oni.dll"); 259 DWORD err = GetLastError(); 260 DDrStartupMessage(" - Module loading returned error %i", err); 258 261 if( dll ) 259 262 { -
Daodan/src/Daodan_GL.c
r692 r694 237 237 DDrStartupMessage("Using standard Windows gamma adjustment"); 238 238 239 //WINE CRASH!if (GetDeviceGammaRamp(gl_eng->HDC, gl_gamma_ramp))239 if (GetDeviceGammaRamp(gl_eng->HDC, gl_gamma_ramp)) 240 240 gl_gamma_ramp_valid = 1; 241 241 } -
Daodan/src/Oni_GL.h
r692 r694 435 435 GLboolean (WINAPI *wglSwapIntervalEXT)(GLint interval); 436 436 437 GLint (WINAPI *wglSetDeviceGammaRamp3DFX)(HDC, GLvoid*);438 GLint (WINAPI *wglGetDeviceGammaRamp3DFX)(HDC, GLvoid*);437 GLint (WINAPI *wglSetDeviceGammaRamp3DFX)(HDC, M3tWin32GammaRamp*); 438 GLint (WINAPI *wglGetDeviceGammaRamp3DFX)(HDC, M3tWin32GammaRamp*); 439 439 } gl_api_t; 440 440 -
Daodan/src/Oni_Symbols.h
r693 r694 36 36 37 37 // OpenGL Gamma related 38 #define gl_gamma_ramp ( *((WORD**)0x0055fdfc))38 #define gl_gamma_ramp (((M3tWin32GammaRamp*)0x0055fdfc)) 39 39 40 40 // OpenGL Gamma related
Note:
See TracChangeset
for help on using the changeset viewer.