all repos — fluxbox @ 1fa71bfcf9578b0627148c389ec0da49fbec1cb1

custom fork of the fluxbox windowmanager

use m_buffer for gc instead since it is the target
fluxgen fluxgen
commit

1fa71bfcf9578b0627148c389ec0da49fbec1cb1

parent

a86e7f8d54fa69cfb781f52c9f526f44da5d3504

1 files changed, 5 insertions(+), 2 deletions(-)

jump to
M src/FbTk/TextButton.ccsrc/FbTk/TextButton.cc

@@ -19,11 +19,13 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 <iostream> +using namespace std; namespace FbTk {

@@ -96,11 +98,12 @@ x, 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();