Ejemplo n.º 1
0
        private bool DrawVideo()
        {
            STexture VideoTexture = CTheme.GetSkinVideoTexture(_Theme.VideoName);

            if (VideoTexture.height > 0)
            {
                RectangleF bounds = new RectangleF(0f, 0f, CSettings.iRenderW, CSettings.iRenderH);
                RectangleF rect   = new RectangleF(0f, 0f, VideoTexture.width, VideoTexture.height);
                CHelper.SetRect(bounds, ref rect, rect.Width / rect.Height, EAspect.Crop);

                CDraw.DrawTexture(VideoTexture, new SRectF(rect.X, rect.Y, rect.Width, rect.Height, CSettings.zFar / 4));
                return(true);
            }
            return(false);
        }