]> git.tdb.fi Git - libs/gui.git/commitdiff
Bugfixes
authorMikko Rasa <tdb@tdb.fi>
Wed, 6 Feb 2008 10:32:49 +0000 (10:32 +0000)
committerMikko Rasa <tdb@tdb.fi>
Wed, 6 Feb 2008 10:32:49 +0000 (10:32 +0000)
source/drawcontext.cpp
source/drawcontext.h

index 44ecf2170052d806b9987da065a6c125bcffe533..d3ac4856324811d04059dbf94c919e207ce48f13 100644 (file)
@@ -26,7 +26,7 @@ DrawContext::DrawContext(Window &w):
 #ifndef WIN32
        ::Display *dpy=display.get_display();
 
-       use_shm=false; XShmQueryExtension(dpy);
+       use_shm=XShmQueryExtension(dpy);
 
        XWindowAttributes wa;
        XGetWindowAttributes(dpy, window.get_handle(), &wa);
index 15f66cb669e82cb38f06737d394e76373f6bbf52..54ae3b364a0323d3b417844b12bac90486a9a746 100644 (file)
@@ -35,7 +35,7 @@ public:
        ~DrawContext();
 
        Window &get_window() const { return window; }
-       unsigned get_depth() const { return image->depth; }
+       unsigned get_depth() const { return image->bits_per_pixel; }
        unsigned char *get_data() { return reinterpret_cast<unsigned char *>(image->data); }
        void update();
 };