Changeset 126 for cafu/branches/cafu_to_wx/Ca3DE/MainFrame.cpp
- Timestamp:
- 08/23/10 22:34:43 (21 months ago)
- Files:
-
- 1 modified
-
cafu/branches/cafu_to_wx/Ca3DE/MainFrame.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cafu/branches/cafu_to_wx/Ca3DE/MainFrame.cpp
r116 r126 23 23 24 24 #include "MainFrame.hpp" 25 #include "AppCafu.hpp" 25 26 #include "MainCanvas.hpp" 26 27 … … 31 32 32 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 mode 38 // other than the default (desktop) mode does not properly fill the screen... 39 return wxGetApp().IsFullScreen() ? 0 : wxDEFAULT_FRAME_STYLE; 40 } 41 42 33 43 MainFrameT::MainFrameT() 34 : wxFrame(NULL /*parent*/, wxID_ANY, wxString("Cafu Engine - ") + __DATE__ ),44 : wxFrame(NULL /*parent*/, wxID_ANY, wxString("Cafu Engine - ") + __DATE__, wxDefaultPosition, wxDefaultSize, GetStyle()), 35 45 m_MainCanvas(NULL) 36 46 { … … 49 59 50 60 // Show the frame - it is not shown by default... 51 Show();61 if (wxGetApp().IsFullScreen()) ShowFullScreen(true); else Show(); 52 62 } 53 63
