Fix compilation issue on 10.5
This commit is contained in:
parent
b0333dfc16
commit
e11ed81f72
2 changed files with 6 additions and 2 deletions
|
@ -103,7 +103,7 @@ VideoMode convertCGModeToSFMode(CFDictionaryRef dictionary)
|
|||
CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.height));
|
||||
|
||||
cfnumber = (CFNumberRef)CFDictionaryGetValue(dictionary, kCGDisplayBitsPerPixel);
|
||||
CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.BitsPerPixel));
|
||||
CFNumberGetValue(cfnumber, kCFNumberIntType, &(sfmode.bitsPerPixel));
|
||||
|
||||
return sfmode;
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ CFDictionaryRef convertSFModeToCGMode(VideoMode sfmode)
|
|||
// If sfmode is in VideoMode::GetFullscreenModes
|
||||
// then this should be an exact match (see NULL parameter doc).
|
||||
return CGDisplayBestModeForParameters(CGMainDisplayID(),
|
||||
sfmode.BitsPerPixel,
|
||||
sfmode.bitsPerPixel,
|
||||
sfmode.width,
|
||||
sfmode.height,
|
||||
NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue