oops in TLStaticImageFactory::createWindow()

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
nfz
Not too shy to talk
Not too shy to talk
Posts: 27
Joined: Wed Jan 12, 2005 12:06

oops in TLStaticImageFactory::createWindow()

Postby nfz » Wed Oct 13, 2004 19:48

Ok, this was a good one. Took me over 3 hours to figure out why I couldn't get borders and background image to display with TLStaticImage.

In TLStaticImageFactory::createWindow() a StaticImage is created instead of a TLStaticImage.

Old code was:

Code: Select all

Window* TLStaticImageFactory::createWindow(const String& name)
{
    StaticImage* wnd = new StaticImage(d_type, name);
    wnd->initialise();

    return wnd;
}


So it should be :

Code: Select all

Window* TLStaticImageFactory::createWindow(const String& name)
{
    TLStaticImage* wnd = new TLStaticImage(d_type, name);
    wnd->initialise();

    return wnd;
}


Again, too simple for a patch.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

oops in TLStaticImageFactory::createWindow()

Postby CrazyEddie » Thu Oct 14, 2004 04:56

Thanks for this one too :oops:

CE.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

oops in TLStaticImageFactory::createWindow()

Postby CrazyEddie » Thu Oct 14, 2004 09:21

The fix for this (and also WL version) has just been committed to CVS.

Thanks again :)

CE.


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest