X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpart.cpp;h=1f58b6187d679c983ad044310b20b5b739e1a6c5;hb=50bf1ef2e2c3c38de20f6996a6c5ed0066111177;hp=a74c91141ca717c86262c8a634f8db75ff359226;hpb=af13797a82b242a3cd8fdd405b057a9e311631ac;p=libs%2Fgltk.git diff --git a/source/part.cpp b/source/part.cpp index a74c911..1f58b61 100644 --- a/source/part.cpp +++ b/source/part.cpp @@ -56,21 +56,20 @@ Part::Loader::Loader(Part &p, Resources &r): Part::Loader::~Loader() { for(unsigned i=0; iget_shadow(); part.geom.w=max(part.geom.w, part.graphic[i]->get_width()-shadow.left-shadow.right); part.geom.h=max(part.geom.h, part.graphic[i]->get_height()-shadow.bottom-shadow.top); } - else - part.graphic[i]=part.graphic[NORMAL]; - } } void Part::Loader::graphic(State s, const string &n) { - part.graphic[s]=res.get(n); + Graphic *grph=res.get(n); + for(int i=0; i