Rename tcontrol::full_redraw() to tcontrol::needs_full_redraw().

This commit is contained in:
Mark de Wever 2008-06-23 20:22:09 +00:00
parent 0c8f478c61
commit e0fd4c8524
3 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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();

View file

@ -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,