Rename tcontrol::full_redraw() to tcontrol::needs_full_redraw().
This commit is contained in:
parent
0c8f478c61
commit
e0fd4c8524
3 changed files with 4 additions and 4 deletions
|
@ -172,7 +172,7 @@ void tcontrol::draw(surface& surface, const bool force,
|
|||
DBG_G_D << "Control: drawing.\n";
|
||||
if(!restorer_) {
|
||||
save_background(surface);
|
||||
} else if(full_redraw()) {
|
||||
} else if(needs_full_redraw()) {
|
||||
restore_background(surface);
|
||||
}
|
||||
|
||||
|
@ -223,7 +223,7 @@ void tcontrol::set_label(const t_string& label)
|
|||
set_dirty();
|
||||
}
|
||||
|
||||
bool tcontrol::full_redraw() const
|
||||
bool tcontrol::needs_full_redraw() const
|
||||
{
|
||||
assert(config());
|
||||
return config()->state[get_state()].full_redraw;
|
||||
|
|
|
@ -184,7 +184,7 @@ protected:
|
|||
/***** ***** ***** ***** miscellaneous ***** ***** ***** *****/
|
||||
|
||||
/** Does the widget need to restore the surface before (re)painting? */
|
||||
virtual bool full_redraw() const;
|
||||
virtual bool needs_full_redraw() const;
|
||||
|
||||
/** Sets the text variable for the canvases. */
|
||||
virtual void set_canvas_text();
|
||||
|
|
|
@ -116,7 +116,7 @@ public:
|
|||
void set_active(const bool /*active*/) {}
|
||||
bool get_active() const { return true; }
|
||||
unsigned get_state() const { return 0; }
|
||||
bool full_redraw() const { return false; /* FIXME IMPLEMENT */ }
|
||||
bool needs_full_redraw() const { return false; /* FIXME IMPLEMENT */ }
|
||||
|
||||
//! Inherited from tpanel.
|
||||
void draw(surface& surface, const bool force = false,
|
||||
|
|
Loading…
Add table
Reference in a new issue