fixed copy x pixmap bug
fluxgen fluxgen
1 files changed,
7 insertions(+),
5 deletions(-)
jump to
M
src/FbTk/FbPixmap.cc
→
src/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.6 2003/08/11 14:58:49 fluxgen Exp $ +// $Id: FbPixmap.cc,v 1.7 2003/08/12 00:25:23 fluxgen Exp $ #include "FbPixmap.hh" #include "App.hh"@@ -152,15 +152,17 @@ &border_width,
&bpp); // create new pixmap and copy area create(root, new_width, new_height, bpp); - // determine screen gc + Display *disp = FbTk::App::instance()->display(); - XWindowAttributes attr; - XGetWindowAttributes(disp, root, &attr); - GC gc = DefaultGCOfScreen(attr.screen); + + GC gc = XCreateGC(disp, drawable(), 0, 0); + XCopyArea(disp, pm, drawable(), gc, 0, 0, width(), height(), 0, 0); + + XFreeGC(disp, gc); } void FbPixmap::rotate() {