Fix Windows builds.

Removed some leftover gamma ramp functionality from Win32 AbstractApp.
Controls
Sven Eberhardt 2015-09-01 08:20:34 -04:00
parent 95baaa7934
commit 0b37c96490
1 changed files with 0 additions and 29 deletions

View File

@ -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);