Mac OS X Porting salframe

From Apache OpenOffice Wiki
Revision as of 15:14, 20 February 2007 by Damiend (Talk | contribs)

Jump to: navigation, search

Working in progres...

  • ImplSalCalcFullScreenSize

static void ImplSalCalcFullScreenSize( const AquaSalFrame* pFrame, Rect* pSize )

Locale function which calculate the full active screen size. (Multi-Display is currently not yet implemented, that's why pframe not used here)


Take the Main Display ID from CoreVideo function (CGDirectDisplayID () ), and defines a CGRect named "rect" which size of this Display (usage of CGDisplayBounds(DisplayID)) to take the full positive size). Then, it stores this positives integers (use of static_cast<int> to have some signed integer)into psize, with origin on the top left.

Personal tools