updated 'texturetest.cc' to work with current API
This commit is contained in:
parent
ae7a54a4b6
commit
78b09ee932
1 changed files with 6 additions and 4 deletions
|
@ -13,6 +13,9 @@
|
||||||
#include "Font.hh"
|
#include "Font.hh"
|
||||||
#include "App.hh"
|
#include "App.hh"
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -33,8 +36,7 @@ public:
|
||||||
m_box_size(box_size),
|
m_box_size(box_size),
|
||||||
m_num(num),
|
m_num(num),
|
||||||
m_font("fixed"),
|
m_font("fixed"),
|
||||||
m_imgctrl(screenNumber(), true, 8,
|
m_imgctrl(screenNumber()),
|
||||||
100, 100),
|
|
||||||
m_background(*this, 640, 480, depth()),
|
m_background(*this, 640, 480, depth()),
|
||||||
m_gc(m_background) {
|
m_gc(m_background) {
|
||||||
setName("Texture Test");
|
setName("Texture Test");
|
||||||
|
@ -47,7 +49,7 @@ public:
|
||||||
show();
|
show();
|
||||||
}
|
}
|
||||||
void keyPressEvent(XKeyEvent &ev) {
|
void keyPressEvent(XKeyEvent &ev) {
|
||||||
App::instance()->end();
|
//App::instance()->end();
|
||||||
}
|
}
|
||||||
void exposeEvent(XExposeEvent &ev) {
|
void exposeEvent(XExposeEvent &ev) {
|
||||||
clear();
|
clear();
|
||||||
|
@ -90,7 +92,7 @@ private:
|
||||||
string("texture") + value,
|
string("texture") + value,
|
||||||
string("Texture") + value));
|
string("Texture") + value));
|
||||||
// load new style
|
// load new style
|
||||||
ThemeManager::instance().load("test.theme");
|
ThemeManager::instance().load("test.theme", "");
|
||||||
|
|
||||||
renderPixmap(**text.get(), next_x, next_y);
|
renderPixmap(**text.get(), next_x, next_y);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue