Add support for display_width/display_height on OSX

This commit is contained in:
rdb 2009-12-14 13:54:57 +00:00
parent 3aff00973c
commit ee6d1b113d

View File

@ -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);
}
////////////////////////////////////////////////////////////////////