Show
Ignore:
Timestamp:
08/26/10 18:14:55 (21 months ago)
Author:
Carsten
Message:
  • Updated the Video Settings dialog of the Main Menu GUI to show the list of video modes that are actually available on the current system.
  • Replaced the initial Cafu console to buffer all messages until they can be copied to the in-game console, so that e.g. Main Menu GUI init errors don't get lost.
Files:
1 modified

Legend:

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

    r131 r132  
    3333#include "ConsoleCommands/Console.hpp" 
    3434#include "ConsoleCommands/ConsoleInterpreter.hpp" 
     35#include "ConsoleCommands/ConsoleStringBuffer.hpp" 
    3536#include "ConsoleCommands/ConVar.hpp" 
    3637#include "GuiSys/ConsoleByWindow.hpp" 
     
    438439    m_PrevConsole=Console; 
    439440    Console=m_ConByGuiWin; 
     441 
     442    // Copy the output to the previous console to the now current console. 
     443    cf::ConsoleStringBufferT* ConsoleSB=dynamic_cast<cf::ConsoleStringBufferT*>(m_PrevConsole); 
     444    if (ConsoleSB) Console->Print(ConsoleSB->GetBuffer()); 
    440445 
    441446    m_InitState=INIT_SUCCESS;