aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Slit.cc')
-rw-r--r--src/Slit.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index c4e4e7c..138af92 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Slit.cc,v 1.27 2002/11/27 12:30:38 fluxgen Exp $ 25// $Id: Slit.cc,v 1.28 2002/11/27 21:50:09 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -414,11 +414,10 @@ void Slit::reconfigure() {
414 414
415 Pixmap tmp = frame.pixmap; 415 Pixmap tmp = frame.pixmap;
416 BImageControl *image_ctrl = screen()->getImageControl(); 416 BImageControl *image_ctrl = screen()->getImageControl();
417 const FbTk::Texture *texture = &(screen()->getTheme()->getSlitTexture()); 417 const FbTk::Texture &texture = screen()->getTheme()->getSlitTexture();
418 if (texture->type() == (FbTk::Texture::FLAT | FbTk::Texture::SOLID)) { 418 if (texture.type() == (FbTk::Texture::FLAT | FbTk::Texture::SOLID)) {
419 frame.pixmap = None; 419 frame.pixmap = None;
420 XSetWindowBackground(disp, frame.window, 420 XSetWindowBackground(disp, frame.window, texture.color().pixel());
421 texture->color().pixel());
422 } else { 421 } else {
423 frame.pixmap = image_ctrl->renderImage(frame.width, frame.height, 422 frame.pixmap = image_ctrl->renderImage(frame.width, frame.height,
424 texture); 423 texture);