mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
Prevent flickering
This commit is contained in:
parent
21364b7cd1
commit
c73378744f
3 changed files with 5 additions and 4 deletions
|
@ -25,7 +25,7 @@ sub new {
|
|||
sub _repaint {
|
||||
my ($self) = @_;
|
||||
|
||||
my $dc = Wx::PaintDC->new($self);
|
||||
my $dc = Wx::AutoBufferedPaintDC->new($self);
|
||||
my ($cw, $ch) = $self->GetSizeWH;
|
||||
return if $cw == 0; # when canvas is not rendered yet, size is 0,0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue