mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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() {
|
||||
CGRect display_bounds = CGDisplayBounds(kCGDirectMainDisplay);
|
||||
_display_width = CGRectGetWidth(display_bounds);
|
||||
_display_height = CGRectGetHeight(display_bounds);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user