Changeset 130 for cafu/branches/cafu_to_wx/Ca3DE/MainFrame.cpp
- Timestamp:
- 08/26/10 15:38:59 (21 months ago)
- Files:
-
- 1 modified
-
cafu/branches/cafu_to_wx/Ca3DE/MainFrame.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cafu/branches/cafu_to_wx/Ca3DE/MainFrame.cpp
r126 r130 32 32 33 33 34 static long int GetStyle()35 {36 // This seems to be a limitation of Windows:37 // Creating a frame with a border that is shown full-screen in a video mode38 // other than the default (desktop) mode does not properly fill the screen...39 return wxGetApp().IsFullScreen() ? 0 : wxDEFAULT_FRAME_STYLE;40 }41 42 43 34 MainFrameT::MainFrameT() 44 : wxFrame(NULL /*parent*/, wxID_ANY, wxString("Cafu Engine - ") + __DATE__ , wxDefaultPosition, wxDefaultSize, GetStyle()),35 : wxFrame(NULL /*parent*/, wxID_ANY, wxString("Cafu Engine - ") + __DATE__), 45 36 m_MainCanvas(NULL) 46 37 { … … 59 50 60 51 // Show the frame - it is not shown by default... 61 if (wxGetApp().Is FullScreen()) ShowFullScreen(true); else Show();52 if (wxGetApp().IsCustomVideoMode()) ShowFullScreen(true); else Show(); 62 53 } 63 54
