Show
Ignore:
Timestamp:
08/26/10 15:38:59 (21 months ago)
Author:
Carsten
Message:

Revised custom video mode handling and initialization.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/branches/cafu_to_wx/Ca3DE/MainFrame.cpp

    r126 r130  
    3232 
    3333 
    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  
    4334MainFrameT::MainFrameT() 
    44     : wxFrame(NULL /*parent*/, wxID_ANY, wxString("Cafu Engine - ") + __DATE__, wxDefaultPosition, wxDefaultSize, GetStyle()), 
     35    : wxFrame(NULL /*parent*/, wxID_ANY, wxString("Cafu Engine - ") + __DATE__), 
    4536      m_MainCanvas(NULL) 
    4637{ 
     
    5950 
    6051    // Show the frame - it is not shown by default... 
    61     if (wxGetApp().IsFullScreen()) ShowFullScreen(true); else Show(); 
     52    if (wxGetApp().IsCustomVideoMode()) ShowFullScreen(true); else Show(); 
    6253} 
    6354