Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lintest/myrulib.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKandrashin Denis <mail@lintest.ru>2013-07-21 18:53:11 +0400
committerKandrashin Denis <mail@lintest.ru>2013-07-21 22:26:45 +0400
commitf8bb771b980b71979b42cddcbbf7c15cdf7df959 (patch)
tree9c4ca2bee635916b77b52432fc401c08a3981d96 /sources
parent7ec538fc239b16ed56e6df5c2ddd293d67d6e017 (diff)
Version 0.29.140.29.14
Diffstat (limited to 'sources')
-rw-r--r--sources/MyRuLib/FbMainFrame.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/sources/MyRuLib/FbMainFrame.cpp b/sources/MyRuLib/FbMainFrame.cpp
index b56edf85..861ee211 100644
--- a/sources/MyRuLib/FbMainFrame.cpp
+++ b/sources/MyRuLib/FbMainFrame.cpp
@@ -279,13 +279,18 @@ void FbMainFrame::RestoreFrameList()
bool FbMainFrame::Create(wxWindow * parent, wxWindowID id, const wxString & title)
{
- wxSize size;
- bool maximized = FbParams(FB_FRAME_MAXIMIZE);
+#ifdef __WXMAC__
+ wxSize size = wxSize(800,600);
+ bool maximized = false;
+#else
+ wxSize size = wxDefaultSize;
+ bool maximized = FbParams(FB_FRAME_MAXIMIZE);
if (maximized) {
size = wxSize( FbParamItem::DefaultInt(FB_FRAME_WIDTH), FbParamItem::DefaultInt(FB_FRAME_HEIGHT) );
} else {
size = wxSize( FbParams(FB_FRAME_WIDTH), FbParams(FB_FRAME_HEIGHT) );
}
+#endif __WXMAC__
bool res = wxFrame::Create(parent, id, title, wxDefaultPosition, size, wxDEFAULT_FRAME_STYLE|wxFRAME_NO_WINDOW_MENU);
if(res) {