mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixes the following compilation error
error: implicit conversion from 'size_t' (aka 'unsigned long') to 'CGFloat' (aka 'double') may lose precision [-Werror,-Wimplicit-int-float-conversion]
This commit is contained in:
parent
f0b44937ce
commit
5e9bb60d68
@ -630,8 +630,7 @@
|
|||||||
NSDictionary* deviceDescription = [[m_window screen] deviceDescription];
|
NSDictionary* deviceDescription = [[m_window screen] deviceDescription];
|
||||||
NSNumber* screenNumber = [deviceDescription valueForKey:@"NSScreenNumber"];
|
NSNumber* screenNumber = [deviceDescription valueForKey:@"NSScreenNumber"];
|
||||||
CGDirectDisplayID screenID = static_cast<CGDirectDisplayID>([screenNumber intValue]);
|
CGDirectDisplayID screenID = static_cast<CGDirectDisplayID>([screenNumber intValue]);
|
||||||
CGFloat height = CGDisplayPixelsHigh(screenID);
|
return static_cast<float>(CGDisplayPixelsHigh(screenID));
|
||||||
return static_cast<float>(height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user