[solved] 5008: The problem with scrolling text in the "listcontrol" in 4K (1 Viewer)

123vak123

Portal Pro
December 13, 2010
207
161
Minsk
Home Country
Belarus Belarus
Hi, Catavolt. I use your skin as a reference for analyzing errors in my own skin. One nuance appeared in all skins when replacing the TV with 4K (3840x2160). In controllers of the "listcontrol" type, if you select the item at which the text fits on the screen in length, then everything is displayed normally. If you select the item at which the text scrolls, then the text is cut from the bottom. This can be seen in the screenshot on such letters as "у", "p", "ф". In the resolution of 1920x1080 everything is displayed normally. Any ideas what could be the reason?
 

Attachments

  • 1920x1080.png
    1920x1080.png
    1.9 MB
  • 3840x2160.png
    3840x2160.png
    5.3 MB

catavolt

Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,421
    10,444
    Königstein (Taunus)
    Home Country
    Germany Germany
    at which the text scrolls
    This is a "fadelabel" - maybe the given height of that fadelabel control is not correct for 4K TVs? Try to make the fadelabel height 1 - 3 pixels higher ;)
    Another question would be how good is the upscaling mechanism in your 4K TV - there may be differences between the different vendors ;)
     

    123vak123

    Portal Pro
    December 13, 2010
    207
    161
    Minsk
    Home Country
    Belarus Belarus
    This bug appears only in the controller "listcontrol". Normal fadelabel (it doesn’t matter whether the controller is in focus or not), scrolling in buttons - everything is displayed normally. I tried changing various parameters inside the "listcontrol", but to no avail.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,616
    10,543
    Kyiv
    Home Country
    Ukraine Ukraine
    This bug appears only in the controller "listcontrol"
    ListControl draw Text based on maxwidth and fontheight, look in log for lines like:
    C#:
    Trace.WriteLine("font:" + _fontName + " " + _fileName + " height:" + _fontHeight.ToString() + " " + _textureWidth.ToString() + "x" + _textureHeight.ToString());
    C#:
    Log.Debug("  Loaded font:{0} height:{1} texture:{2}x{3} chars:[{4}-{5}] miplevels:{6}", _fontName, _fontHeight, _textureWidth, _textureHeight, _StartCharacter, _EndCharacter, _textureFont.LevelCount);
    Or may be try increase height for Label control in references.xml ...
     

    123vak123

    Portal Pro
    December 13, 2010
    207
    161
    Minsk
    Home Country
    Belarus Belarus
    After replacing the TV from FullHD to 4K, there was a problem with the correct display of the selected (in focus) items with scrolling in the "listcontrol". If the line with the text fully fits in the specified boundaries, then there is no problem. If the line with the text does not fit within the given boundaries, then when selecting this element starts scrolling and the text is cut from below. I tried it on different skins, but the problem persists. Everything is displayed normally when changing the resolution to 1920x1080.
     

    Attachments

    • 2K no scroll - OK.png
      2K no scroll - OK.png
      212.8 KB
    • 2K scroll - OK.png
      2K scroll - OK.png
      207 KB
    • 4K no scroll - OK.png
      4K no scroll - OK.png
      609.2 KB
    • 4K scroll.png
      4K scroll.png
      592.6 KB
    • 4K.zip
      1.8 MB
    • FullHD.zip
      2.9 MB

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,616
    10,543
    Kyiv
    Home Country
    Ukraine Ukraine
    @123vak123
    Clear skin cache and run MP in 4K ...
    Code:
    [2020-04-10 11:11:00,201] [Log    ] [MPMain   ] [INFO ] - Load fonts from: C:\ProgramData\Team MediaPortal\MediaPortal\Skin\MY3\fonts.xml
    [2020-04-10 11:11:00,217] [Log    ] [MPMain   ] [DEBUG] - GUIFontManager InitializeDeviceObjects()
    [2020-04-10 11:11:00,224] [Log    ] [MPMain   ] [WARN ] - GUIFont: InitializeDeviceObjects Ошибка в приложении.
    [2020-04-10 11:11:00,224] [Log    ] [MPMain   ] [DEBUG] - TextureLoader.CreateFile C:\ProgramData\Team MediaPortal\MediaPortal\Cache\MY3\fonts\debug_12.dds
    [2020-04-10 11:11:01,415] [Log    ] [MPMain   ] [DEBUG] - Saving font:debug height:12 texture:4096x2048 chars:[32-6000] miplevels:1
    ...

    PS: Delete or Disable MusicInfoHandler:
    Code:
    [2020-04-10 11:25:45,473] [Log    ] [MusicInfoHandler Album Details] [ERROR] - Exception: System.Net.WebException: Невозможно разрешить удаленное имя: 'api.fanart.tv'
       в System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
       в System.Net.WebClient.DownloadString(Uri address)
       в System.Net.WebClient.DownloadString(String address)
       в MusicInfoHandlerGUI.Downloader.DownloadJSON(String url)
       в MusicInfoHandlerGUI.FanArt.tv.FanArtTvAPI.GetAlbumThumbs(String albumMbid)
       в MusicInfoHandlerGUI.ArtistThumbScraper.GetAlbumDetails()  Message: Невозможно разрешить удаленное имя: 'api.fanart.tv'  Site   : Byte[] DownloadDataInternal(System.Uri, System.Net.WebRequest ByRef)  Source : System  Stack Trace:     в System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
       в System.Net.WebClient.DownloadString(Uri address)
       в System.Net.WebClient.DownloadString(String address)
       в MusicInfoHandlerGUI.Downloader.DownloadJSON(String url)
       в MusicInfoHandlerGUI.FanArt.tv.FanArtTvAPI.GetAlbumThumbs(String albumMbid)
       в MusicInfoHandlerGUI.ArtistThumbScraper.GetAlbumDetails()
     

    Users who are viewing this thread

    Top Bottom