wxMotif compilation fixes after wxDC changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: src/motif/dcscreen.cpp
|
||||
// Purpose: wxScreenDC class
|
||||
// Purpose: wxScreenDCImpl class
|
||||
// Author: Julian Smart
|
||||
// Modified by:
|
||||
// Created: 17/09/98
|
||||
@@ -12,8 +12,6 @@
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#include "wx/dcscreen.h"
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/utils.h"
|
||||
#include "wx/window.h"
|
||||
@@ -29,15 +27,17 @@
|
||||
#endif
|
||||
|
||||
#include "wx/motif/private.h"
|
||||
#include "wx/motif/dcscreen.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxScreenDCImpl, wxWindowDCImpl)
|
||||
|
||||
WXWindow wxScreenDC::sm_overlayWindow = 0;
|
||||
int wxScreenDC::sm_overlayWindowX = 0;
|
||||
int wxScreenDC::sm_overlayWindowY = 0;
|
||||
WXWindow wxScreenDCImpl::sm_overlayWindow = 0;
|
||||
int wxScreenDCImpl::sm_overlayWindowX = 0;
|
||||
int wxScreenDCImpl::sm_overlayWindowY = 0;
|
||||
|
||||
// Create a DC representing the whole screen
|
||||
wxScreenDC::wxScreenDC()
|
||||
wxScreenDCImpl::wxScreenDCImpl(wxScreenDC *owner)
|
||||
: wxWindowDCImpl(owner)
|
||||
{
|
||||
m_display = wxGetDisplay();
|
||||
Display* display = (Display*) m_display;
|
||||
@@ -65,12 +65,12 @@ wxScreenDC::wxScreenDC()
|
||||
m_ok = true;
|
||||
}
|
||||
|
||||
wxScreenDC::~wxScreenDC()
|
||||
wxScreenDCImpl::~wxScreenDCImpl()
|
||||
{
|
||||
EndDrawingOnTop();
|
||||
}
|
||||
|
||||
bool wxScreenDC::StartDrawingOnTop(wxWindow* window)
|
||||
bool wxScreenDCImpl::StartDrawingOnTop(wxWindow* window)
|
||||
{
|
||||
wxRect rect;
|
||||
int x, y, width, height;
|
||||
@@ -84,7 +84,7 @@ bool wxScreenDC::StartDrawingOnTop(wxWindow* window)
|
||||
return StartDrawingOnTop(& rect);
|
||||
}
|
||||
|
||||
bool wxScreenDC::StartDrawingOnTop(wxRect* rect)
|
||||
bool wxScreenDCImpl::StartDrawingOnTop(wxRect* rect)
|
||||
{
|
||||
if (sm_overlayWindow)
|
||||
return false;
|
||||
@@ -123,7 +123,7 @@ bool wxScreenDC::StartDrawingOnTop(wxRect* rect)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxScreenDC::EndDrawingOnTop()
|
||||
bool wxScreenDCImpl::EndDrawingOnTop()
|
||||
{
|
||||
if (sm_overlayWindow)
|
||||
{
|
||||
|
Reference in New Issue
Block a user