summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-02-24 14:27:37 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-02-24 14:27:37 +0800
commit73829509db9aa4cfca211c47ac9b4fdaf2566264 (patch)
tree9a5e3875ea1af4efac5ce497b99495a0d0877b7e
parent23fa85ca9b07512cd26d1f9ab0eb2d99464eb5e9 (diff)
downloadreflex-73829509db9aa4cfca211c47ac9b4fdaf2566264.tar.gz
reflex-73829509db9aa4cfca211c47ac9b4fdaf2566264.tar.bz2
Adapt for new core API
-rw-r--r--src/reflex.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/reflex.cpp b/src/reflex.cpp
index 5fdeff2..1c5fe86 100644
--- a/src/reflex.cpp
+++ b/src/reflex.cpp
@@ -141,6 +141,8 @@ void
ReflexScreen::optionChanged (CompOption *opt,
ReflexOptions::Options num)
{
+ CompString pname ("reflex");
+
switch (num)
{
@@ -153,6 +155,7 @@ ReflexScreen::optionChanged (CompOption *opt,
image.clear ();
}
image = GLTexture::readImageToTexture (string,
+ pname,
size);
imageLoaded = image.size ();
@@ -329,7 +332,8 @@ ReflexScreen::ReflexScreen (CompScreen *) :
{
CompSize size;
CompString string (optionGetFile ());
- image = GLTexture::readImageToTexture (string, size);
+ CompString pname ("reflex");
+ image = GLTexture::readImageToTexture (string, pname, size);
imageLoaded = image.size ();
width = size.width ();