On Wed, 2010-10-06 at 16:34 -0400, Jean-Sébastien Guay wrote: > Hi Robert, > > Quick one for OpenSceneGraph-Data, which has been lying on my hard drive > for a while. > > When you run osgwidgetframe, you get these messages: > > the size of theme file osgWidget/theme-1.png can not be divided by 3, > check the > documentation about theme format > createSimpleFrameWithSingleTexture with a null image, the frame > frameTheme will > be use texture > the size of theme file osgWidget/theme-2.png can not be divided by 3, > check the > documentation about theme format > createSimpleFrameWithSingleTexture with a null image, the frame > frameTheme will > be use texture > the size of theme file osgWidget/theme-2.png can not be divided by 3, > check the > documentation about theme format > createSimpleFrameWithSingleTexture with a null image, the frame > frameTheme will > be use texture > > So here are modified versions of Images/osgWidget/theme-1.png and > theme-2.png, scaled from 64x64 to 66x66 so that they can be used as > themes (their dimensions need to be divisible by 3 as the message says).
I had noticed this too--and I'm not entirely sure where in the WORLD all that wonky code in Frame.cpp came from. At any rate, I certainly agree that both Frame theme types could be useful; my original 8x1 format and Cedric's modified 3x3 (which is converted into 8x1). However, I haven't had a chance to follow through all that new code to see just what the state of things are. Certainly not how I remember them? :) Alas, such is the danger of getting sick and letting your things fall out of maintenance... > With these images osgwidgetframe works as intended (not only the message > is gone, but the example looks as it should, which it didn't before the > change). > > I don't know why it has been like that for so long, I had expected > someone else to spot this and send in modified files, but here they are. > > Thanks, > > J-S > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org -- Follow us on Twitter! http://twitter.com/emperorlinux EmperorLinux, Inc. http://www.emperorlinux.com 1-888-651-6686 _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
