diff options
Diffstat (limited to 'src/Indicator.cxx')
| -rw-r--r-- | src/Indicator.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Indicator.cxx b/src/Indicator.cxx index bc3c83a17..5ab0a7813 100644 --- a/src/Indicator.cxx +++ b/src/Indicator.cxx @@ -60,7 +60,7 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r  		const PRectangle rcSquiggle = PixelGridAlign(rc);  		const int width = std::min(4000, static_cast<int>(rcSquiggle.Width())); -		RGBAImage image(width, 3, 1.0, 0); +		RGBAImage image(width, 3, 1.0, nullptr);  		enum { alphaFull = 0xff, alphaSide = 0x2f, alphaSide2=0x5f };  		for (int x = 0; x < width; x++) {  			if (x%2) { @@ -165,7 +165,7 @@ void Indicator::Draw(Surface *surface, const PRectangle &rc, const PRectangle &r  		IntegerRectangle ircBox(rcBox);  		// Cap width at 4000 to avoid large allocations when mistakes made  		const int width = std::min(ircBox.Width(), 4000); -		RGBAImage image(width, ircBox.Height(), 1.0, 0); +		RGBAImage image(width, ircBox.Height(), 1.0, nullptr);  		// Draw horizontal lines top and bottom  		for (int x=0; x<width; x++) {  			for (int y = 0; y<ircBox.Height(); y += ircBox.Height() - 1) {  | 
