summaryrefslogtreecommitdiff
path: root/sysutils/bbapm/files/patch-Image.cc
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2001-12-08 02:18:07 +0000
committerPatrick Li <pat@FreeBSD.org>2001-12-08 02:18:07 +0000
commit40c3e68ad8f18972c3616f833785504cebd119f7 (patch)
treea77653e79c4646436ab070a2ed51f8a3ac074967 /sysutils/bbapm/files/patch-Image.cc
parentUpdate to 4.42.2.9 (diff)
Initial import of x11-wm/bbapm, an APM meter for Blackbox
PR: 29461 Submitted by: Adam Weinberger <monkey@crackula.com>, \ Scott Renfro <scott@renfro.org> (additional patches)
Notes
Notes: svn path=/head/; revision=51200
Diffstat (limited to 'sysutils/bbapm/files/patch-Image.cc')
-rw-r--r--sysutils/bbapm/files/patch-Image.cc36
1 files changed, 36 insertions, 0 deletions
diff --git a/sysutils/bbapm/files/patch-Image.cc b/sysutils/bbapm/files/patch-Image.cc
new file mode 100644
index 000000000000..23455a41ff98
--- /dev/null
+++ b/sysutils/bbapm/files/patch-Image.cc
@@ -0,0 +1,36 @@
+--- Image.cc.orig Sun Aug 15 07:43:55 1999
++++ Image.cc Sat Aug 4 20:52:40 2001
+@@ -50,6 +50,17 @@
+ BImage::BImage(BImageControl *c, unsigned int w, unsigned int h) {
+ control = c;
+
++ colors = NULL;
++ red = NULL;
++ green = NULL;
++ blue = NULL;
++ tr = NULL;
++ tg = NULL;
++ tb = NULL;
++
++ from.allocated = 0;
++ to.allocated = 0;
++
+ width = ((signed) w > 0) ? w : 1;
+ height = ((signed) h > 0) ? h : 1;
+
+@@ -843,7 +854,14 @@
+ window = blackbox->getRootWindow();
+ screen_number = blackbox->getScreenNumber();
+
+- colors = 0;
++ colors = NULL;
++ red_err = NULL;
++ green_err = NULL;
++ blue_err = NULL;
++ next_red_err = NULL;
++ next_green_err = NULL;
++ next_blue_err = NULL;
++ cache = NULL;
+ colors_per_channel = ncolors = 0;
+
+ int count;