• Tomaž Vajngerl's avatar
    rework Color to have R,G,B,A public variables · d487d6e0
    Tomaž Vajngerl yazdı
    Color is a wrapper around a sal_uInt32 variable. With a union,
    separate channels R, G, B, A sal_uInt8 variables can be added
    that occupy the same memory. This makes it much easier to access
    each color component separately, which is used quite a lot by
    various algorithms. This also adds the variables to public so
    everyone can enjoy the benefits.
    Tests have been extended to make sure this doesn't break the
    existing algroithms.
    Change-Id: I2e78e12df68e8c7f0f49420eef5e659b335ee397
    Reviewed-on: https://gerrit.libreoffice.org/71002
    Tested-by: Jenkins
    Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
CppunitTest_tools_test.mk 1.62 KB