mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
display_width, display_height for OSX tinydisplay renderer
This commit is contained in:
parent
420d5a129c
commit
5590431e09
@ -33,6 +33,9 @@ TypeHandle TinyOsxGraphicsPipe::_type_handle;
|
||||
////////////////////////////////////////////////////////////////////
|
||||
TinyOsxGraphicsPipe::
|
||||
TinyOsxGraphicsPipe() {
|
||||
CGRect display_bounds = CGDisplayBounds(kCGDirectMainDisplay);
|
||||
_display_width = CGRectGetWidth(display_bounds);
|
||||
_display_height = CGRectGetHeight(display_bounds);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user