Skip to content

Commit

Permalink
Bug in _do_background() call, fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Woody Gilk committed Jul 19, 2009
1 parent 644fbee commit 91c7c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public function background($color, $opacity = 100)
// Convert the hex into RGB values
list ($r, $g, $b) = array_map('hexdec', str_split($color, 2));

$this->_do_background($r, $b, $b, $opacity);
$this->_do_background($r, $g, $b, $opacity);

return $this;
}
Expand Down

0 comments on commit 91c7c06

Please sign in to comment.