aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/TextButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/TextButton.cc')
-rw-r--r--src/FbTk/TextButton.cc7
1 files 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 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: TextButton.cc,v 1.4 2003/10/31 20:02:49 rathnor Exp $ 22// $Id: TextButton.cc,v 1.5 2004/01/09 02:19:02 fluxgen Exp $
23 23
24#include "TextButton.hh" 24#include "TextButton.hh"
25#include "Font.hh" 25#include "Font.hh"
26#include "GContext.hh" 26#include "GContext.hh"
27#include <iostream>
28using namespace std;
27 29
28namespace FbTk { 30namespace FbTk {
29 31
@@ -96,11 +98,12 @@ void TextButton::clearArea(int x, int y,
96 width, height); 98 width, height);
97 99
98 } else { // fill with background color 100 } else { // fill with background color
99 FbTk::GContext gc(drawable()); 101 FbTk::GContext gc(m_buffer);
100 gc.setForeground(backgroundColor()); 102 gc.setForeground(backgroundColor());
101 m_buffer.fillRectangle(gc.gc(), 103 m_buffer.fillRectangle(gc.gc(),
102 x, y, 104 x, y,
103 width, height); 105 width, height);
106
104 } 107 }
105 108
106 drawText(); 109 drawText();