]> git.tdb.fi Git - libs/gui.git/blobdiff - source/drawcontext.h
Bugfixes
[libs/gui.git] / source / drawcontext.h
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();
 };