X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphic.cpp;h=005d30fb4ef8f7929326093766d49ae62332dcbe;hb=e5f9004b672b038e43cf2b20c3fc9327f2b55ffd;hp=db2afa2cfa0340018b2424cc18865a2ae5a51b85;hpb=0af3c2393bd00f39db3bfaf5b78a7a44f0fd5ff1;p=libs%2Fgltk.git diff --git a/source/graphic.cpp b/source/graphic.cpp index db2afa2..005d30f 100644 --- a/source/graphic.cpp +++ b/source/graphic.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include #include "graphic.h" #include "resources.h" @@ -95,7 +88,7 @@ Graphic::Loader::Loader(Graphic &g, Resources &r): void Graphic::Loader::texture(const string &n) { - graph.texture = res.get(n); + graph.texture = &res.get(n); graph.slice = Geometry(0, 0, graph.texture->get_width(), graph.texture->get_height()); }