X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgbase%2Fdrawcontext.h;h=b21ac3cde57714bbdc8c05d75bf594a718ff808f;hb=9164e74de9dc17c74ee9f3cea21c4d247a3835d9;hp=54ae3b364a0323d3b417844b12bac90486a9a746;hpb=7a4a508629d370c4a79791c7e62fd6f59e8564e9;p=libs%2Fgui.git diff --git a/source/gbase/drawcontext.h b/source/gbase/drawcontext.h index 54ae3b3..b21ac3c 100644 --- a/source/gbase/drawcontext.h +++ b/source/gbase/drawcontext.h @@ -35,8 +35,8 @@ public: ~DrawContext(); Window &get_window() const { return window; } - unsigned get_depth() const { return image->bits_per_pixel; } - unsigned char *get_data() { return reinterpret_cast(image->data); } + unsigned get_depth() const; + unsigned char *get_data(); void update(); };