[mythtv] OpenGL menu background rendering problem

florin baiduc florinbaiduc at gmail.com
Thu Mar 23 02:02:08 UTC 2006


Also, I presume that the background is also displayed by the :

void MythThemedMenuState::paintButtonBackground(MythPainter *p, int alpha)
{
    if (buttonBackground)
        p->DrawImage(buttonArea.topLeft(), buttonBackground, alpha);
}
function? Am I right?



On 3/23/06, florin baiduc <florinbaiduc at gmail.com> wrote:
> Hi, take a look at myththemedmenu.cpp, more precisely at the
> void MythThemedMenuState::parseBackground
> function.
> And while you're there, can you take a look and give a hand at
> enabling the mouse as well :)) (myself having a small success, but a
> lot of segmentation faults :( )?
>
>
>
> On 3/22/06, Colin Guthrie <mythtv at colin.guthr.ie> wrote:
> > Has anyone else managed to take a look at this (see below or in thread)?
> >
> > If someone cleverer than me can point me in the right direction as to
> > where the background image is loaded and displayed in Myth, then I'll
> > probably be able to mess about a bit more, but I can't see how I can
> > look at it more closely until I find this code. I'll try and take
> > another look tonight, but pointers would probably spead things up for me.
> >
> > Col.
> >
> >
> > Colin Guthrie wrote:
> > > Isaac Richards wrote:
> > >
> > >>On Monday 20 March 2006 14:08, Colin Guthrie wrote:
> > >>
> > >>>If you can point me in the right direction, perhaps I can take a
> > >>>looksee? GL really isn't my strong point tho'.
> > >>
> > >>
> > >>All the opengl drawing is in libs/libmythui/mythpainter_ogl.cpp
> > >
> > >
> > > Ach, I don't think I'm much use.... I can't even work out where the
> > > background is loaded and displayed from the theme!!!
> > >
> > > The only bit of code that seems to make sense to me as to where this
> > > image tag may be loaded from the XML file is in myththemedmenu.cpp:364
> > > ish in the parseBackground() method but it simply ignores the image tag
> > > contained within the <background> block....
> > >
> > > 364               if (info.tagName() == "image")
> > > 365               {
> > > 366               }
> > > 367
> > >
> > > So as things stand, I can't work out where it's painting the background
> > > in the first place let alone try and debug it!!
> > >
> > > The code above is in the 19-fixes branch/tag so it can't be incorrect,
> > > and I summise that it must be me being thick!
> > >
> > >
> > > Sorry.
> > >
> > > Col.
> > >
> >
> >
> > --
> >
> > +------------------------+
> > |     Colin Guthrie      |
> > +------------------------+
> > | myth(at)colin.guthr.ie |
> > | http://colin.guthr.ie/ |
> > +------------------------+
> > _______________________________________________
> > mythtv-dev mailing list
> > mythtv-dev at mythtv.org
> > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
> >
>


More information about the mythtv-dev mailing list