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/MainCanvas.cpp

    r126 r130  
    2323 
    2424#include "MainCanvas.hpp" 
     25#include "AppCafu.hpp" 
    2526#include "MainFrame.hpp" 
    2627#include "Client/Client.hpp" 
     
    902903        case WXK_F11: 
    903904        { 
    904             m_Parent->ShowFullScreen(!m_Parent->IsFullScreen()); 
     905            if (!wxGetApp().IsCustomVideoMode()) 
     906            { 
     907                // Switching full-screen mode with F11 only makes sense if we didn't set a custom video mode (screen resolution). 
     908                // See AppCafuT::OnInit() for more details. 
     909                m_Parent->ShowFullScreen(!m_Parent->IsFullScreen()); 
     910            } 
    905911            return; 
    906912        }