X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdrawcontext.h;h=54ae3b364a0323d3b417844b12bac90486a9a746;hb=9049aa855a08bb8fdb36f6c7f51658f105d4d474;hp=15f66cb669e82cb38f06737d394e76373f6bbf52;hpb=e1ea4934019243fd6aac566877c9796acc4dc1f1;p=libs%2Fgui.git diff --git a/source/drawcontext.h b/source/drawcontext.h index 15f66cb..54ae3b3 100644 --- a/source/drawcontext.h +++ b/source/drawcontext.h @@ -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(image->data); } void update(); };