Skip to content

Commit 2e85ced

Browse files
author
Guillaume Piolat
committed
Perhaps some slight optimization, by avoiding pushing too much rectangles on first draw.
1 parent c714381 commit 2e85ced

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

gui/dplug/gui/element.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1882,6 +1882,11 @@ private:
18821882
{
18831883
_visibilityStatus = newStatus;
18841884

1885+
// PERF: if a widget has never been visible yet,
1886+
// and it's still invisible on first draw: be sure not to
1887+
// set the position dirty. I'm not sure if that could
1888+
// happen.
1889+
18851890
// Dirty the widget position
18861891
setDirtyWhole();
18871892

0 commit comments

Comments
 (0)