aboutsummaryrefslogtreecommitdiff
path: root/util/bsetroot.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util/bsetroot.cc')
-rw-r--r--util/bsetroot.cc29
1 files changed, 26 insertions, 3 deletions
diff --git a/util/bsetroot.cc b/util/bsetroot.cc
index eef21a7..be7b69a 100644
--- a/util/bsetroot.cc
+++ b/util/bsetroot.cc
@@ -1,6 +1,29 @@
1// Copyright (c) 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
2// Copyright (c) 1997 - 2000 Brad Hughes <bhughes at trolltech.com>
3//
4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation
7// the rights to use, copy, modify, merge, publish, distribute, sublicense,
8// and/or sell copies of the Software, and to permit persons to whom the
9// Software is furnished to do so, subject to the following conditions:
10//
11// The above copyright notice and this permission notice shall be included in
12// all copies or substantial portions of the Software.
13//
14// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20
21// $Id: bsetroot.cc,v 1.8 2002/08/18 09:47:03 fluxgen Exp $
22
1#include "bsetroot.hh" 23#include "bsetroot.hh"
2 24
3#include "../src/i18n.hh" 25#include "../src/i18n.hh"
26#include "../src/Image.hh"
4 27
5#ifdef HAVE_CONFIG_H 28#ifdef HAVE_CONFIG_H
6# include "../config.h" 29# include "../config.h"
@@ -81,7 +104,7 @@ bsetroot::bsetroot(int argc, char **argv, char *dpy_name)
81 usage(); 104 usage();
82 } 105 }
83 106
84 if ((mod + sol + grd) != True) { 107 if ((mod + sol + grd) != true) {
85 fprintf(stderr, 108 fprintf(stderr,
86 I18n::instance()-> 109 I18n::instance()->
87 getMessage( 110 getMessage(
@@ -107,7 +130,7 @@ bsetroot::bsetroot(int argc, char **argv, char *dpy_name)
107} 130}
108 131
109 132
110bsetroot::~bsetroot(void) { 133bsetroot::~bsetroot() {
111 XKillClient(display, AllTemporary); 134 XKillClient(display, AllTemporary);
112 135
113 if (pixmaps) { // should always be true 136 if (pixmaps) { // should always be true
@@ -181,7 +204,7 @@ void bsetroot::setRootAtoms(Pixmap pixmap, int screen) {
181//-------------- solid -------------------- 204//-------------- solid --------------------
182// draws pixmaps with a single color 205// draws pixmaps with a single color
183//----------------------------------------- 206//-----------------------------------------
184void bsetroot::solid(void) { 207void bsetroot::solid() {
185 register int screen = 0; 208 register int screen = 0;
186 209
187 pixmaps = new Pixmap[getNumberOfScreens()]; 210 pixmaps = new Pixmap[getNumberOfScreens()];