From 1fa71bfcf9578b0627148c389ec0da49fbec1cb1 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 9 Jan 2004 02:19:02 +0000 Subject: use m_buffer for gc instead since it is the target --- src/FbTk/TextButton.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc index de8fad0..a472349 100644 --- a/src/FbTk/TextButton.cc +++ b/src/FbTk/TextButton.cc @@ -19,11 +19,13 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: TextButton.cc,v 1.4 2003/10/31 20:02:49 rathnor Exp $ +// $Id: TextButton.cc,v 1.5 2004/01/09 02:19:02 fluxgen Exp $ #include "TextButton.hh" #include "Font.hh" #include "GContext.hh" +#include +using namespace std; namespace FbTk { @@ -96,11 +98,12 @@ void TextButton::clearArea(int x, int y, width, height); } else { // fill with background color - FbTk::GContext gc(drawable()); + FbTk::GContext gc(m_buffer); gc.setForeground(backgroundColor()); m_buffer.fillRectangle(gc.gc(), x, y, width, height); + } drawText(); -- cgit v0.11.2