// Purpose:
// Author: Vaclav Slavik
// Id: $Id$
-// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "toplevel.h"
#endif
#include "wx/defs.h"
#include "wx/toplevel.h"
#include "wx/app.h"
+#include "wx/mgl/private.h"
// ----------------------------------------------------------------------------
// idle system
void wxTopLevelWindowMGL::Maximize(bool maximize)
{
+ int x, y, w, h;
+ wxClientDisplayRect(&x, &y, &w, &h);
+
+ rect_t screenRect = MGL_defRect(x, y, w, h);
+ MGL_wmInvalidateRect(g_winMng, &screenRect);
+
if ( maximize && !m_isMaximized )
{
- int x, y, w, h;
-
m_isMaximized = TRUE;
GetPosition(&m_savedFrame.x, &m_savedFrame.y);
GetSize(&m_savedFrame.width, &m_savedFrame.height);
- wxClientDisplayRect(&x, &y, &w, &h);
SetSize(x, y, w, h);
}
else if ( !maximize && m_isMaximized )