Minor problem with videowall function & UI calibration (1 Viewer)

arion_p

Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    Hi,

    In the Home screen, if you press the second of the top 4 buttons while a video/tv is playing the video plays as a background with the UI on top. I believe this function is called videowall (at least that's what it's called in code). If however you have used UI calibration to change the width/height of the UI the videowall no longer works. If you make the UI small enough you can see that the video is playing behind the background image of the screen.

    In order for the video to show behind the UI the background image rendering is skipped when this feature is on. Unfortunately the code that determines if an image is the background image fails to do so when UI calibration has been used. The code at the end of MediaPortal.GUI.Library.GUIImage.Calculate():
    Code:
                _isFullScreenImage = false;
                [B]if (m_iRenderWidth == GUIGraphicsContext.Width && m_iRenderHeight == GUIGraphicsContext.Height)[/B]
                {
                    _isFullScreenImage = true;
                }
            }

    should be changed to:

    Code:
                _isFullScreenImage = false;
    [B]            if (m_iRenderWidth == Math.Round((float)GUIGraphicsContext.Width * GUIGraphicsContext.ZoomHorizontal) 
                  && m_iRenderHeight == Math.Round((float)GUIGraphicsContext.Height * GUIGraphicsContext.ZoomVertical))
    [/B]            {
                    _isFullScreenImage = true;
                }
            }

    so that it takes UI Calibration into account.

    Edit 29/5/2009
    This fix can be found as a patch here


    Cheers,

    Arion
     

    Users who are viewing this thread

    Top Bottom