From 52c955c4917582ecf229ec63ea4d7f0c4eede7c0 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 15 May 2002 03:40:09 +0000 Subject: [PATCH 1/1] update to work with renamed function in BaseDisplay --- util/bsetroot.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/util/bsetroot.cc b/util/bsetroot.cc index 39d8b2c7..0f36e1e2 100644 --- a/util/bsetroot.cc +++ b/util/bsetroot.cc @@ -107,8 +107,8 @@ bsetroot::bsetroot(int argc, char **argv, char *dpy_name) usage(2); } - img_ctrl = new BImageControl*[getNumberOfScreens()]; - for (unsigned int s = 0; s < getNumberOfScreens(); ++s) + img_ctrl = new BImageControl*[numberOfScreens()]; + for (unsigned int s = 0; s < numberOfScreens(); ++s) img_ctrl[s] = new BImageControl(*this, *getScreenInfo(s), true); if (sol && fore) solid(); @@ -123,7 +123,7 @@ bsetroot::~bsetroot(void) { XKillClient(getXDisplay(), AllTemporary); - std::for_each(img_ctrl, img_ctrl + getNumberOfScreens(), PointerAssassin()); + std::for_each(img_ctrl, img_ctrl + numberOfScreens(), PointerAssassin()); delete [] img_ctrl; } @@ -201,7 +201,7 @@ Pixmap bsetroot::duplicatePixmap(int screen, Pixmap pixmap, void bsetroot::solid(void) { - for (unsigned int screen = 0; screen < getNumberOfScreens(); screen++) { + for (unsigned int screen = 0; screen < numberOfScreens(); screen++) { BColor c; img_ctrl[screen]->parseColor(&c, fore); @@ -235,7 +235,7 @@ void bsetroot::modula(int x, int y) { unsigned int screen, i; - for (pattern = 0, screen = 0; screen < getNumberOfScreens(); screen++) { + for (pattern = 0, screen = 0; screen < numberOfScreens(); screen++) { for (i = 0; i < 16; i++) { pattern <<= 1; if ((i % x) == 0) @@ -300,7 +300,7 @@ void bsetroot::modula(int x, int y) { void bsetroot::gradient(void) { - for (unsigned int screen = 0; screen < getNumberOfScreens(); screen++) { + for (unsigned int screen = 0; screen < numberOfScreens(); screen++) { BTexture texture; img_ctrl[screen]->parseTexture(&texture, grad); img_ctrl[screen]->parseColor(texture.getColor(), fore); -- 2.45.2