protected override void LoadAdvancedSettings(Settings xmlreader)
        {
            int    subPicsBufferAhead = xmlreader.GetValueAsInt("subtitles", "subPicsBufferAhead", 3);
            bool   pow2textures       = xmlreader.GetValueAsBool("subtitles", "pow2tex", false);
            string textureSize        = xmlreader.GetValueAsString("subtitles", "textureSize", "Medium");
            bool   disableAnimation   = xmlreader.GetValueAsBool("subtitles", "disableAnimation", true);

            int  w, h;
            int  screenW = GUIGraphicsContext.Width;
            int  screenH = GUIGraphicsContext.Height;
            bool res1080 = (screenW == 1920 && screenH == 1080);
            bool res720  = (screenW >= 1280 && screenW <= 1368 && screenH >= 720 && screenH <= 768);

            if (textureSize.Equals("Desktop"))
            {
                w = screenW;
                h = screenH;
            }
            else if (textureSize.Equals("Low"))
            {
                if (res1080)
                {
                    w = 854;
                    h = 480;
                }
                else if (res720)
                {
                    w = 512;
                    h = 288;
                }
                else
                {
                    w = (int)(Math.Round(screenW / 3.0));
                    h = (int)(Math.Round(screenH / 3.0));
                }
            }
            else //if (textureSize.Equals("Medium"))
            {
                if (res1080)
                {
                    w = 1280;
                    h = 720;
                }
                else if (res720)
                {
                    w = 854;
                    h = 480;
                }
                else
                {
                    w = (int)(Math.Round(screenW * 2.0 / 3));
                    h = (int)(Math.Round(screenH * 2.0 / 3));
                }
            }
            Log.Debug("MpcEngine: using texture size of {0}x{1}", w, h);
            Size size = new Size(w, h);

            MpcSubtitles.SetAdvancedOptions(subPicsBufferAhead, size, pow2textures, disableAnimation);
        }