sdl-mainloop: Draw things again

Günther Brammer 2012-03-25 01:54:07 +01:00
parent 182889bfe4
commit 25bbaef7d2
3 changed files with 7 additions and 1 deletions

View File

@ -608,6 +608,5 @@ void C4ToolsDlg::UpdateTextures() {}
void C4ToolsDlg::UpdateToolCtrls() {}
bool C4Viewport::ScrollBarsByViewPosition() {return 0;}
bool C4Viewport::TogglePlayerLock() {return 0;}
void C4Window::RequestUpdate() {}
#include "C4ConsoleGUICommon.h"
#endif

View File

@ -207,6 +207,7 @@ bool C4Window::GetSize(C4Rect*) {return 0;}
C4Window* C4Window::Init(C4Window::WindowKind, C4AbstractApp*, char const*, C4Window*, bool) {return this;}
bool C4Window::ReInit(C4AbstractApp*) {return 0;}
bool C4Window::RestorePosition(char const*, char const*, bool) {return 0;}
void C4Window::RequestUpdate() {}
void C4Window::SetSize(unsigned int, unsigned int) {}
void C4Window::SetTitle(char const*) {}

View File

@ -99,6 +99,12 @@ void C4Window::SetTitle(const char * Title)
SDL_WM_SetCaption(Title, 0);
}
void C4Window::RequestUpdate()
{
// just invoke directly
PerformUpdate();
}
// For Max OS X, the implementation resides in StdMacApp.mm
#ifndef __APPLE__