aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-09 02:19:02 (GMT)
committerfluxgen <fluxgen>2004-01-09 02:19:02 (GMT)
commit1fa71bfcf9578b0627148c389ec0da49fbec1cb1 (patch)
treefeaa9c3bbf34e20ef8084327ec41f480d5377636 /src
parenta86e7f8d54fa69cfb781f52c9f526f44da5d3504 (diff)
downloadfluxbox-1fa71bfcf9578b0627148c389ec0da49fbec1cb1.zip
fluxbox-1fa71bfcf9578b0627148c389ec0da49fbec1cb1.tar.bz2
use m_buffer for gc instead since it is the target
Diffstat (limited to 'src')
-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();