3cd989bc63
bapm is an APM meter for Blackbox, which shows the battery status of your laptop in a decorated window, simulating the look of the Blackbox toolbar. bbapm is based on bbsload. This package is based on the FreeBSD port and the OpenBSD patches posted to http://bbtools.windsofstorm.net written by Michael Henson (mike at axl dot net). Various changes by yours truly.
38 lines
853 B
Text
38 lines
853 B
Text
$NetBSD: patch-ac,v 1.1.1.1 2002/09/07 20:22:54 jschauma Exp $
|
|
|
|
--- 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;
|