]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/image.cpp
Store the Resources reference only in Root widget
[libs/gltk.git] / source / image.cpp
index f7f61bbb9a73e2b4b84d48228bd4e2f3217d5782..11003f4d1af56acbfb6b7367ec680f6e86bb1533 100644 (file)
@@ -16,13 +16,11 @@ using namespace std;
 namespace Msp {
 namespace GLtk {
 
-Image::Image(const Resources &r, const GL::Texture2D *i):
-       Widget(r),
+Image::Image(const GL::Texture2D *i):
        image(i),
        keep_aspect(true)
 {
        focusable = false;
-       update_style();
 }
 
 void Image::set_image(const GL::Texture2D *i)