Skip to content

Commit

Permalink
Clean up appearance of crossbox to avoid odd black bar in the middle.
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Dec 10, 2012
1 parent 6592b11 commit bb3cbb7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Revision history for Perl extension Bio::Graphics.

2.32 Mon Dec 10 05:47:45 EST 2012
- Clean up appearance of crossbox to avoid odd black bar in the middle.

2.31 Tue Sep 25 22:39:43 EDT 2012
- Fix infinite loop when drawing wiggle_xyplots with z-score scaling
over regions that do not vary much.
Expand Down
2 changes: 1 addition & 1 deletion lib/Bio/Graphics.pm
Expand Up @@ -2,7 +2,7 @@ package Bio::Graphics;

use strict;
use Bio::Graphics::Panel;
our $VERSION = '2.31';
our $VERSION = '2.32';

1;

Expand Down
13 changes: 3 additions & 10 deletions lib/Bio/Graphics/Glyph/crossbox.pm
Expand Up @@ -14,16 +14,9 @@ sub draw_component {
my $fg = $self->fgcolor;
my ($left,$top) = @_;
my($x1,$y1,$x2,$y2) = $self->bounds(@_);
$self->unfilled_box($gd,
$x1, $y1,
$x2, $y2);

if ($self->option('bgcolor')){
my $c = $self->color('bgcolor');
my $xmid = ($x2+$x1)/2;
my $ymid = ($y2+$y1)/2;
$gd->fill($xmid,$ymid,$c);
}
$self->filled_box($gd,
$x1, $y1,
$x2, $y2);

$gd->line($x1,$y1,$x2,$y2,$fg);
$gd->line($x1,$y2,$x2,$y1,$fg);
Expand Down

0 comments on commit bb3cbb7

Please sign in to comment.