[windows] Use unsigned for enums used as bitfields 36/246136/3
authorWander Lairson Costa <wander.lairson@gmail.com>
Fri, 23 Oct 2020 21:50:36 +0000 (18:50 -0300)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 17 Nov 2020 16:02:03 +0000 (16:02 +0000)
commit8ad272b59e0e598c7499616f1d7d154fcaa95bdd
treed9e696c88d60a66fd7f07d4b240d8c2eb1f532fd
parent863460d5c6f88c007f0c14356a102b5b4a724d1c
[windows] Use unsigned for enums used as bitfields

When using enums as bitfields, the Microsoft C++ compiler will generated
shift intructions to when comparing the enum with one of its constants.
As by default enums are signed interegers, the compiler will generated
signed shifts, yielding trash values.

We define the enums in the TextureInfo class as unsigned ints to avoid
this bug.

Change-Id: Icdd49c3b417b09313964c71381b7c8230c844f12
dali-toolkit/internal/visuals/texture-manager-impl.cpp
dali-toolkit/internal/visuals/texture-manager-impl.h