wxDC::GetSize() should work now in wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -69,12 +69,6 @@ void wxDC::DestroyClippingRegion()
|
||||
// get DC capabilities
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
void wxDC::DoGetSize( int* width, int* height ) const
|
||||
{
|
||||
if (width) *width = m_maxX-m_minX;
|
||||
if (height) *height = m_maxY-m_minY;
|
||||
}
|
||||
|
||||
void wxDC::DoGetSizeMM( int* width, int* height ) const
|
||||
{
|
||||
int w = 0;
|
||||
|
@@ -393,6 +393,13 @@ void wxWindowDC::SetUpDC()
|
||||
}
|
||||
}
|
||||
|
||||
void wxWindowDC::DoGetSize( int* width, int* height ) const
|
||||
{
|
||||
wxCHECK_RET( m_owner, _T("GetSize() doesn't work without window") );
|
||||
|
||||
m_owner->GetSize(width, height);
|
||||
}
|
||||
|
||||
void wxWindowDC::DoFloodFill( wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
|
||||
const wxColour &WXUNUSED(col), int WXUNUSED(style) )
|
||||
{
|
||||
|
@@ -101,3 +101,7 @@ bool wxScreenDC::EndDrawingOnTop()
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void wxScreenDC::DoGetSize(int *width, int *height) const
|
||||
{
|
||||
wxDisplaySize(width, height);
|
||||
}
|
||||
|
Reference in New Issue
Block a user