Some bitmap bugfixes Fixed parameters to XFillRectangle, remoced old debug code.
Scott Moynes smoynes@nexus.carleton.ca
3 files changed,
5 insertions(+),
8 deletions(-)
M
src/Toolbar.cc
→
src/Toolbar.cc
@@ -651,8 +651,7 @@
XFillRectangle(blackbox->getXDisplay(), surface, pen.gc(), (frame.button_w - style->left_button.w)/2, (frame.button_w - style->left_button.h)/2, - (frame.button_w + style->left_button.w)/2, - (frame.button_w + style->left_button.h)/2); + style->left_button.w, style->left_button.h); XSetClipMask(blackbox->getXDisplay(), pen.gc(), None); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0);
M
src/Window.cc
→
src/Window.cc
@@ -2628,7 +2628,7 @@ (frame.button_w - pm.w)/2, (frame.button_w - pm.h)/2);
XFillRectangle(blackbox->getXDisplay(), frame.iconify_button, pen.gc(), (frame.button_w - pm.w)/2, (frame.button_w - pm.h)/2, - (frame.button_w + pm.w)/2, (frame.button_w + pm.h)/2); + pm.w, pm.h); XSetClipMask(blackbox->getXDisplay(), pen.gc(), None); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0);@@ -2679,7 +2679,7 @@ (frame.button_w - pm.w)/2, (frame.button_w - pm.h)/2);
XFillRectangle(blackbox->getXDisplay(), frame.maximize_button, pen.gc(), (frame.button_w - pm.w)/2, (frame.button_w - pm.h)/2, - (frame.button_w + pm.w)/2, (frame.button_w + pm.h)/2); + pm.w, pm.h); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 ); XSetClipMask( blackbox->getXDisplay(), pen.gc(), None );@@ -2767,7 +2767,7 @@ (frame.button_w - pm.w)/2, (frame.button_w - pm.h)/2);
XFillRectangle(blackbox->getXDisplay(), frame.stick_button, pen.gc(), (frame.button_w - pm.w)/2, (frame.button_w - pm.h)/2, - (frame.button_w + pm.w)/2, (frame.button_w + pm.h)/2); + pm.w, pm.h); XSetClipOrigin(blackbox->getXDisplay(), pen.gc(), 0, 0 );