diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-19 00:55:05 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-19 00:55:05 +0000 |
| commit | b3a87e3a6f0001949af5e1547c4ef6af470a83ff (patch) | |
| tree | 083fee53ee6ee7458a9fce949de05258d5668ca7 /otk/widget.hh | |
| parent | 503638dbc681956c16c4418bcabe1493f682bde8 (diff) | |
a few optimizations to layouts/rendering
Diffstat (limited to 'otk/widget.hh')
| -rw-r--r-- | otk/widget.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/otk/widget.hh b/otk/widget.hh index 93121c85..07b6c084 100644 --- a/otk/widget.hh +++ b/otk/widget.hh @@ -52,7 +52,7 @@ public: inline bool visible() const { return _visible; } virtual void update(); - virtual void refresh() { _dirty = true; render(); } + virtual void refresh() { if (_visible) { _dirty = true; render(); } } virtual void setBevel(int b); inline int bevel() const { return _bevel; } |
