mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Add support for display_width/display_height on OSX
This commit is contained in:
parent
3aff00973c
commit
ee6d1b113d
@ -27,6 +27,9 @@ TypeHandle osxGraphicsPipe::_type_handle;
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
osxGraphicsPipe::
|
osxGraphicsPipe::
|
||||||
osxGraphicsPipe() {
|
osxGraphicsPipe() {
|
||||||
|
CGRect display_bounds = CGDisplayBounds(kCGDirectMainDisplay);
|
||||||
|
_display_width = CGRectGetWidth(display_bounds);
|
||||||
|
_display_height = CGRectGetHeight(display_bounds);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user