HISE Logo Forum
    • Categories
    • Register
    • Login

    [bug] Colour properties with alpha don't work on Windows

    Scheduled Pinned Locked Moved Bug Reports
    9 Posts 3 Posters 435 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healeyD
      d.healey
      last edited by

      I noticed this bug a while ago but couldn't really pin it down, but now I can.

      In a paint routine if you read a colour property from a panel, bgColour for example, within Colours.withAlpha(), the colour will be drawn as white.

      This only affects Windows.

      HiseSnippet 829.3ocsUssaSCDDccRLpIPk.I9.rxSNRkHmRuPUEhzbChnWhZJU7V010ahWU6csrW2PDpeJHwmBeR7G.y5MI1ARqPQT+PTlKmcOdlyLdPjfPiiEQHixWLMjhLdl4voboWaOLii52Q4fH7EIQWPiknVSCwwwTWjgQw2qxvnbIT5yOeWKrOlSnYtPnKELB8XV.Sl4cPyOx786gcoWvBxk8NM6SD71o2ExnnoCJDStAOldJVkVASjwS55xjhngRrjFiLJ0R3NcnmXBWm+krX109TkQCzP3fzt6I7cULV4E01i46NX9acLBNkAY0fh5ZvKMOg4xV3OqV77z.VYHxWOLJrL8JtD8ZjmdN4n2JnjQNJURSoWXNjDwBkYQT74ol84RZzHLT1ySEctnBeyvrs.xfKqGfug1KBLVfvdOGmsrfepcXkJPoOVZcKNxZ.lS8aX8Vq4HGSksEAgBNXXWUGtpBi9u0ioxAPARdtHQx3T6QIbhjI31iqU4qkqTdb8QPC+HeeacyMt93H5T3.RiEqNck6EQmvjdG4G5gskdrX00aW85w5nUqskkS8cqoPqO2yoD4hDOVPv9sDIb2X6ccTYcWsCmyGKA+TgjdF2F3Eb42Uw5OCMZzJiopDQBeeZzJCqzwQODPadRv0znsf5qeBcQhPycYEi48qXxKnI5FStDE79bl7rPJ+9j4nYcS3eepeGrDqjYy7A4ERijLEEL5PuElY0htxlcnw2HEgo4NSB.tkoQ2btjTICPLP3sgoVRf9R1X8GZNMynSyILWo2BG+XRSOJarW15guKaNuWqV8ry1GryANM1eOGDSRCxucHyd6YCR+8TCLuJbS7wxkGhUatlE.5SKM4nlN3wL4z7a19uMY+uRwWXNfIIdqliEVAGgt4iAGmsObSytiFAyYYDrjYuO+3r7CoWiL9DrLhA5HySSBFBMYBEtcNntTyIFETJZssixVUAFR4toF+BdlErgx1XVvFyChBvjHwUD8zoZi6Fod.NwS+XSYyST1VMPoSr.NSm5Nn.X4+UDh50+UvP1pwr8Zf40qAlcVCL6tFX1aMvr+Zf4MOHF02cOJQJBziCfiAcSWiYXzkiAkUpJD8ayZ5X0B
      

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey
        last edited by

        If I set the colour via scripting in on init - Panel1.set("bgColour", Colours.red); Then it works... so it's like there is a problem reading from the UI xml or something on Windows.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by

          This happening for anyone else?

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          DanHD 1 Reply Last reply Reply Quote 0
          • DanHD
            DanH @d.healey
            last edited by

            @d-healey just trying the snippet. I've changed the panel's bg colour to yellow, hit compile and it's yellow.

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @DanH
              last edited by d.healey

              @DanH Now save that change in the xml (not .hip), close HISE and reload it. It should now be white.

              And my snippet showed as white, right?

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              DanHD 1 Reply Last reply Reply Quote 0
              • DanHD
                DanH @d.healey
                last edited by

                @d-healey yup

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                1 Reply Last reply Reply Quote 1
                • d.healeyD
                  d.healey
                  last edited by

                  Bump bump

                  Libre Wave - Freedom respecting instruments and effects
                  My Patreon - HISE tutorials
                  YouTube Channel - Public HISE tutorials

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @d.healey
                    last edited by

                    @d-healey It appears that saving and loading as XML loses the type information so it tries to render the value as string and fails so it defaults to 0.

                    I've added some logic to handle that case but it wasn't used in all those Colour.withXXX() methods (if you pass it into g.setColour() it should work correctly.

                    Anyway, it's fixed now.

                    d.healeyD 1 Reply Last reply Reply Quote 2
                    • d.healeyD
                      d.healey @Christoph Hart
                      last edited by

                      @Christoph-Hart Thank you :)

                      Libre Wave - Freedom respecting instruments and effects
                      My Patreon - HISE tutorials
                      YouTube Channel - Public HISE tutorials

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      19

                      Online

                      1.7k

                      Users

                      11.8k

                      Topics

                      102.5k

                      Posts