]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/dcscreen.cpp
fixed crash in HitTest() with y position below the last line
[wxWidgets.git] / src / mac / carbon / dcscreen.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcscreen.cpp
3// Purpose: wxScreenDC class
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "dcscreen.h"
14#endif
15
16#include "wx/dcscreen.h"
2f1ae414 17#include "wx/mac/uma.h"
e9576ca5 18
2f1ae414 19#if !USE_SHARED_LIBRARY
e9576ca5 20IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
2f1ae414 21#endif
e9576ca5
SC
22
23// Create a DC representing the whole screen
24wxScreenDC::wxScreenDC()
25{
2f1ae414
SC
26#if TARGET_CARBON
27 m_macPort = GetQDGlobalsThePort() ;
28#else
519cb848 29 m_macPort = LMGetWMgrPort() ;
2f1ae414 30#endif
519cb848 31 m_ok = TRUE ;
2f1ae414
SC
32 BitMap screenBits;
33 GetQDGlobalsScreenBits( &screenBits );
34 m_minX = screenBits.bounds.left ;
35 #if TARGET_CARBON
36 SInt16 height ;
37 GetThemeMenuBarHeight( &height ) ;
38 m_minY = screenBits.bounds.top + height ;
39 #else
40 m_minY = screenBits.bounds.top + LMGetMBarHeight() ;
41 #endif
42 m_maxX = screenBits.bounds.right ;
43 m_maxY = screenBits.bounds.bottom ;
e9576ca5
SC
44}
45
46wxScreenDC::~wxScreenDC()
47{
48 // TODO
49}
50