Mac: Fix build by adding refresh rate parameter (ignoring it)

Martin Plicht 2011-01-24 12:11:18 +01:00
parent 208f283512
commit cdc29a593a
2 changed files with 2 additions and 2 deletions

View File

@ -507,7 +507,7 @@ void CStdWindow::EnumerateMultiSamples(std::vector<int>& samples) const
[ClonkOpenGLView enumerateMultiSamples:samples];
}
bool CStdApp::SetVideoMode(unsigned int iXRes, unsigned int iYRes, unsigned int iColorDepth, unsigned int iMonitor, bool fFullScreen)
bool CStdApp::SetVideoMode(unsigned int iXRes, unsigned int iYRes, unsigned int iColorDepth, unsigned int iRefreshRate, unsigned int iMonitor, bool fFullScreen)
{
ClonkWindowController* controller = (ClonkWindowController*)pWindow->GetController();
NSWindow* window = controller.window;

View File

@ -137,7 +137,7 @@ static int32_t bitDepthFromPixelEncoding(CFStringRef encoding)
return -1; // fail
}
bool CStdApp::GetIndexedDisplayMode(int32_t iIndex, int32_t *piXRes, int32_t *piYRes, int32_t *piBitDepth, uint32_t iMonitor)
bool CStdApp::GetIndexedDisplayMode(int32_t iIndex, int32_t *piXRes, int32_t *piYRes, int32_t *piBitDepth, int32_t *piRefreshRate, uint32_t iMonitor)
{
// No support for multiple monitors.
CFArrayRef array = CGDisplayCopyAllDisplayModes(iMonitor, NULL);