From: Mikko Rasa Date: Tue, 2 Nov 2010 13:12:05 +0000 (+0000) Subject: Add tick() method to SimpleWindow X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=479955455305f6129e8a75a6803e7c86d11d9e04;p=libs%2Fgui.git Add tick() method to SimpleWindow --- diff --git a/source/gbase/simplewindow.cpp b/source/gbase/simplewindow.cpp index 406090d..b0ba232 100644 --- a/source/gbase/simplewindow.cpp +++ b/source/gbase/simplewindow.cpp @@ -14,6 +14,11 @@ SimpleWindow::SimpleWindow(unsigned w, unsigned h, bool fs): Window(dpy, w, h, fs) { } +void SimpleWindow::tick() +{ + dpy.tick(); +} + SimpleGLWindow::SimpleGLWindow(unsigned w, unsigned h, bool fs): SimpleWindow(w, h, fs), diff --git a/source/gbase/simplewindow.h b/source/gbase/simplewindow.h index 1f5bb7d..1caa5e7 100644 --- a/source/gbase/simplewindow.h +++ b/source/gbase/simplewindow.h @@ -34,6 +34,8 @@ class SimpleWindow: public SimpleWindowBase, public Window { public: SimpleWindow(unsigned, unsigned, bool =false); + + void tick(); };