From 729f9840ae47a373fdf5396e00efd25d0c988f54 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Tue, 12 Nov 2002 16:46:17 +0000 Subject: fixed antialias option and changed to BaseDisplay usage --- util/fbrun/main.cc | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/util/fbrun/main.cc b/util/fbrun/main.cc index d04b4a0..2237340 100644 --- a/util/fbrun/main.cc +++ b/util/fbrun/main.cc @@ -19,16 +19,31 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: main.cc,v 1.1 2002/08/20 02:04:34 fluxgen Exp $ +// $Id: main.cc,v 1.2 2002/11/12 16:46:17 fluxgen Exp $ #include "FbRun.hh" +#include "BaseDisplay.hh" #include #include + using namespace std; +class App:public BaseDisplay { +public: + App(const char *displaystr):BaseDisplay("FbRun", displaystr) { } + FbRun &fbrun() { return m_fbrun; } + void handleEvent(XEvent * const ev) { + m_fbrun.handleEvent(ev); + if (m_fbrun.end()) + shutdown(); + } +private: + FbRun m_fbrun; +}; + void showUsage(const char *progname) { - cerr<<"fbrun 1.1.0 : (c) 2002 Henrik Kinnunen"<