all repos — fluxbox @ c213fb6ca2ed68722152df2d07ede6860846786b

custom fork of the fluxbox windowmanager

fixed minor bug
fluxgen fluxgen
commit

c213fb6ca2ed68722152df2d07ede6860846786b

parent

5bb98e087509b0b28b65888243856f5fec5eb922

2 files changed, 13 insertions(+), 9 deletions(-)

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

@@ -19,7 +19,7 @@ // 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: FbPixmap.cc,v 1.11 2004/07/05 23:51:57 fluxgen Exp $ +// $Id: FbPixmap.cc,v 1.12 2004/07/06 10:47:36 fluxgen Exp $ #include "FbPixmap.hh" #include "App.hh"

@@ -253,19 +253,19 @@ if (drawable() == 0 ||

(dest_width == width() && dest_height == height())) return; - Display *dpy = FbTk::App::instance()->display(); - FbPixmap new_pm(drawable(), width(), height(), depth()); new_pm.copy(m_pm); - resize(dest_width,dest_height); + resize(dest_width, dest_height); + + FbTk::GContext gc(*this); - GC gc = XCreateGC(dpy, drawable(), 0, NULL); + gc.setTile(new_pm); + gc.setFillStyle(FillTiled); - XSetTile(dpy,gc,new_pm.release()); - XSetFillStyle(dpy, gc, FillTiled); - XFillRectangle(dpy,drawable(),gc, 0, 0, dest_width, dest_height); + fillRectangle(gc.gc(), 0, 0, dest_width, dest_height); + }
M src/FbTk/GContext.hhsrc/FbTk/GContext.hh

@@ -19,7 +19,7 @@ // 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: GContext.hh,v 1.9 2004/03/22 20:56:15 fluxgen Exp $ +// $Id: GContext.hh,v 1.10 2004/07/06 10:47:36 fluxgen Exp $ #ifndef FBTK_GCONTEXT_HH #define FBTK_GCONTEXT_HH

@@ -64,6 +64,10 @@ }

inline void setBackground(long pixel_value) { XSetBackground(m_display, m_gc, pixel_value); + } + + inline void setTile(const FbTk::FbPixmap &draw) { + XSetTile(m_display, m_gc, draw.drawable()); } /// not implemented