forked from Mirrors/openclonk
Mac: Fix build by adding refresh rate parameter (ignoring it)
parent
208f283512
commit
cdc29a593a
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue