|
@@ -298,13 +298,13 @@ |
|
|
block discarded – undo |
|
298
|
298
|
private function getBmpImage($index) |
|
299
|
299
|
{ |
|
300
|
300
|
// create image filled with desired background color |
|
301
|
|
- $w=$this->iconDirEntry[$index]['Width']; |
|
302
|
|
- $h=$this->iconDirEntry[$index]['Height']; |
|
|
301
|
+ $w = $this->iconDirEntry[$index]['Width']; |
|
|
302
|
+ $h = $this->iconDirEntry[$index]['Height']; |
|
303
|
303
|
$im = imagecreatetruecolor($w, $h); |
|
304
|
304
|
|
|
305
|
305
|
if ($this->bgcolorTransparent) { |
|
306
|
306
|
imagealphablending($im, false); |
|
307
|
|
- $bgcolor=$this->allocateColor($im, $this->bgcolor[0], $this->bgcolor[1], $this->bgcolor[2], 127); |
|
|
307
|
+ $bgcolor = $this->allocateColor($im, $this->bgcolor[0], $this->bgcolor[1], $this->bgcolor[2], 127); |
|
308
|
308
|
imagefilledrectangle($im, 0, 0, $w, $h, $bgcolor); |
|
309
|
309
|
imagesavealpha($im, true); |
|
310
|
310
|
} else { |
Please login to merge, or discard this patch.