From 78b09ee932c7b3d1d383c14c202b849f9814eba2 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Tue, 21 Sep 2010 00:05:15 +0200 Subject: updated 'texturetest.cc' to work with current API --- src/tests/texturetest.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tests/texturetest.cc b/src/tests/texturetest.cc index 390fbb8..a9ac615 100644 --- a/src/tests/texturetest.cc +++ b/src/tests/texturetest.cc @@ -13,6 +13,9 @@ #include "Font.hh" #include "App.hh" +#include +#include +#include #include #include @@ -33,8 +36,7 @@ public: m_box_size(box_size), m_num(num), m_font("fixed"), - m_imgctrl(screenNumber(), true, 8, - 100, 100), + m_imgctrl(screenNumber()), m_background(*this, 640, 480, depth()), m_gc(m_background) { setName("Texture Test"); @@ -47,7 +49,7 @@ public: show(); } void keyPressEvent(XKeyEvent &ev) { - App::instance()->end(); + //App::instance()->end(); } void exposeEvent(XExposeEvent &ev) { clear(); @@ -90,7 +92,7 @@ private: string("texture") + value, string("Texture") + value)); // load new style - ThemeManager::instance().load("test.theme"); + ThemeManager::instance().load("test.theme", ""); renderPixmap(**text.get(), next_x, next_y); -- cgit v0.11.2