forked from Mirrors/openclonk
Fix Windows builds.
Removed some leftover gamma ramp functionality from Win32 AbstractApp.Controls
parent
95baaa7934
commit
0b37c96490
|
@ -977,35 +977,6 @@ bool C4AbstractApp::SetVideoMode(unsigned int iXRes, unsigned int iYRes, unsigne
|
|||
#endif
|
||||
}
|
||||
|
||||
bool C4AbstractApp::SaveDefaultGammaRamp(_GAMMARAMP &ramp)
|
||||
{
|
||||
HDC hDC = GetDC(pWindow->hWindow);
|
||||
if (hDC)
|
||||
{
|
||||
bool r = !!GetDeviceGammaRamp(hDC, &ramp);
|
||||
if (!r)
|
||||
{
|
||||
Log(" Error getting default gamma ramp; using standard");
|
||||
}
|
||||
ReleaseDC(pWindow->hWindow, hDC);
|
||||
return r;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool C4AbstractApp::ApplyGammaRamp(_GAMMARAMP &ramp, bool fForce)
|
||||
{
|
||||
if (!Active && !fForce) return false;
|
||||
HDC hDC = GetDC(pWindow->hWindow);
|
||||
if (hDC)
|
||||
{
|
||||
bool r = !!SetDeviceGammaRamp(hDC, &ramp);
|
||||
ReleaseDC(pWindow->hWindow, hDC);
|
||||
return r;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void C4AbstractApp::MessageDialog(const char * message)
|
||||
{
|
||||
MessageBoxW(0, GetWideChar(message), ADDL(C4ENGINECAPTION), MB_ICONERROR);
|
||||
|
|
Loading…
Reference in New Issue