use m_buffer for gc instead since it is the target
fluxgen fluxgen
1 files changed,
5 insertions(+),
2 deletions(-)
jump to
M
src/FbTk/TextButton.cc
→
src/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();