[confirm] <border> and corners="yes" broken in 1.2b (1 Viewer)

n4orcer

MP Donator
  • Premium Supporter
  • May 5, 2008
    116
    26
    Sweden
    Home Country
    Sweden Sweden
    Hi,

    Any known bugs with using <border>? I noticed that in the Alpha version, corners where broken while you where using any form of "diffuse="Thumb_Mask.png", eg the regular borders worked, but the corners where not shown.

    Since 1.2b was released, it looks like the same bug now applies everywhere regardless of the use of diffuse. See attached screenshot/images, I see this results everywhere I use <border>.

    Code:
    	<control>
    		<description>RSS.Background</description>
    		<type>image</type>
    		<posX>130</posX>
    		<posY>1010</posY>
    		<height>41</height>
    		<width>1365</width>
    		<texture>image_background.png</texture>
    		<border corners="yes" cornerRotate="yes" textureRotate="yes" >16</border>
    		<animation effect="Slide" time="325" start="0,300" end="0,0">WindowOpen</animation>
    		<animation effect="Slide" time="325" start="0,0" end="0,300">WindowClose</animation>
    		<visible>plugin.isenabled(InfoService)</visible>
    	</control>

    image_background.pngimage_border.png
    image_border_corner.pngborder_issues_example.png

    Please ignore the errors regarding not connecting to the TVService, my TVServer is offline. :)

    MediaPortal Version: 1.2.0.0b
    MediaPortal Skin: Essence-1080p
    Windows Version: Windows 7 x64
    CPU Type: AMD 4850e
    HDD: Segate 320GB
    Memory: Crosair 4GB XMS PC6400
    Motherboard: Gigabyte GA-MA78MG-S2H
    Video Card: ATI Radeon 5750 1GB
    Video Card Driver: 10.7
    Sound Card: Realtek HD-Audio
    Sound Card AC3: HDMI out
    Sound Card Driver: v2.47
    1. TV Card: Terratec Cynergy C PCI HD
    1. TV Card Type: DVB-C
    1. TV Card Driver:
    2. TV Card:
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: FFDShow
    MPEG2 Audio Codec: FFDShow
    h.264 Video Codec: FFDShow DXVA
    Satelite/CableTV Provider: ComHem (Sweden)
    HTPC Case: Silverstone LC16-MR
    Cooling: 5x Noctuna 80mm 10db
    Power Supply: Acer 400W
    Remote: Logitech Harmony 900
    TV: LG 42LY95
    TV - HTPC Connection: HDMI trough Onkyo 876
     

    n4orcer

    MP Donator
  • Premium Supporter
  • May 5, 2008
    116
    26
    Sweden
    Home Country
    Sweden Sweden
    I'm still having problems with this... Any ideas?

    Best Regards,
    Martin
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Looking at the code, the name for the corner texture is created like this:

    Code:
    [XMLSkin("border", "texture")] protected string _borderTextureFileName = "image_border.png";
    
    string _cornerTextureFileName = Path.GetFileNameWithoutExtension(_borderTextureFileName);
            _cornerTextureFileName += "_corner" + Path.GetExtension(_borderTextureFileName);

    So the default texture for borders is image_border.png and if you want corners it must be named image_border_corner.png
    But I'm sure you knew that already ;)
    Just trying to help.
     

    n4orcer

    MP Donator
  • Premium Supporter
  • May 5, 2008
    116
    26
    Sweden
    Home Country
    Sweden Sweden
    Looking at the code, the name for the corner texture is created like this:

    Code:
    [XMLSkin("border", "texture")] protected string _borderTextureFileName = "image_border.png";
    
    string _cornerTextureFileName = Path.GetFileNameWithoutExtension(_borderTextureFileName);
            _cornerTextureFileName += "_corner" + Path.GetExtension(_borderTextureFileName);

    So the default texture for borders is image_border.png and if you want corners it must be named image_border_corner.png
    But I'm sure you knew that already ;)
    Just trying to help.

    Hi, yeah I'm aware of that. It worked on and off before MePo 1.2b with the same files. The files I'm using are attached in my first post as well and they are using the correct names, unless I'm blind from staring and trying to understand why it does not work. ;)

    Before MePo 1.2b they worked all the time unless an diffuse was used in a control, then the same problem as now appeared with the corners not showing up.

    Let me know if there is anything I can try. I feel like I've tried everything and they will just not work they way it states in the Wiki and again, it worked "decently" before 1.2b. :)
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    I have now tried to reproduce it, but I can only say that those corners are drawn. I made the image_border_corner.png with a red rectangle so I can clearly see it.

    Code:
    <control>
          <type>image</type>
          <posX>100</posX>
          <posY>400</posY>
          <height>40</height>
          <width>1000</width>
          <texture>image_background.png</texture>
          <border corners="yes" cornerRotate="yes" textureRotate="yes">16</border>
        </control>

    Here is the screenshot:
     

    Attachments

    • 14-10-14.png
      14-10-14.png
      397.3 KB

    Users who are viewing this thread

    Top Bottom