From faa7b46970694357ecbbd834d13f87e14e517ae8 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 30 Apr 2004 10:52:00 +0000 Subject: [PATCH] Patch : 2.1 nopatch (linux) Files : Bug 0000100 Il calcolo delle dimensione della finestra Principale e' errato git-svn-id: svn://10.65.10.50/trunk@12043 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- xvaga/xvaga.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xvaga/xvaga.cpp b/xvaga/xvaga.cpp index 14a82934c..8b4fe61b4 100755 --- a/xvaga/xvaga.cpp +++ b/xvaga/xvaga.cpp @@ -1284,8 +1284,20 @@ void xvt_app_create(int argc, char **argv, unsigned long flags, const wxString title = config->taskwin_title; +#ifdef WIN32 wxPoint pos = wxDefaultPosition; wxSize size = wxDefaultSize; +#else + wxRect rect = wxGetClientDisplayRect(); + wxPoint pos; + wxSize size ; + + pos.x = rect.x; + pos.y = rect.y; + size.x = rect.width; + size.y = rect.height; +#endif + long style = wxDEFAULT_FRAME_STYLE; if (_startup_rect.right > _startup_rect.left) @@ -1295,8 +1307,13 @@ void xvt_app_create(int argc, char **argv, unsigned long flags, size.x = _startup_rect.right - _startup_rect.left; size.y = _startup_rect.bottom - _startup_rect.top; } +#ifdef WIN32 else style |= wxMAXIMIZE; +#else + else + style &= ~wxMAXIMIZE; +#endif _task_win = new TTaskWin(NULL, ICON_RSRC, title, pos, size, style); _nice_windows.Put((WINDOW)_task_win, _task_win);