summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/FbPixmap.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/FbTk/FbPixmap.cc b/src/FbTk/FbPixmap.cc
index f96a872..5be9e7b 100644
--- a/src/FbTk/FbPixmap.cc
+++ b/src/FbTk/FbPixmap.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbPixmap.cc,v 1.6 2003/08/11 14:58:49 fluxgen Exp $ 22// $Id: FbPixmap.cc,v 1.7 2003/08/12 00:25:23 fluxgen Exp $
23 23
24#include "FbPixmap.hh" 24#include "FbPixmap.hh"
25#include "App.hh" 25#include "App.hh"
@@ -152,15 +152,17 @@ void FbPixmap::copy(Pixmap pm) {
152 &bpp); 152 &bpp);
153 // create new pixmap and copy area 153 // create new pixmap and copy area
154 create(root, new_width, new_height, bpp); 154 create(root, new_width, new_height, bpp);
155 // determine screen gc 155
156 Display *disp = FbTk::App::instance()->display(); 156 Display *disp = FbTk::App::instance()->display();
157 XWindowAttributes attr; 157
158 XGetWindowAttributes(disp, root, &attr); 158 GC gc = XCreateGC(disp, drawable(), 0, 0);
159 GC gc = DefaultGCOfScreen(attr.screen); 159
160 XCopyArea(disp, pm, drawable(), gc, 160 XCopyArea(disp, pm, drawable(), gc,
161 0, 0, 161 0, 0,
162 width(), height(), 162 width(), height(),
163 0, 0); 163 0, 0);
164
165 XFreeGC(disp, gc);
164} 166}
165 167
166void FbPixmap::rotate() { 168void FbPixmap::rotate() {