Fixed Color::toInteger() not being const-qualified
This commit is contained in:
parent
e0d27358fb
commit
e0174545e6
@ -75,7 +75,7 @@ public:
|
||||
/// \return Color represented as a 32-bit unsigned integer
|
||||
///
|
||||
////////////////////////////////////////////////////////////
|
||||
Uint32 toInteger();
|
||||
Uint32 toInteger() const;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Static member data
|
||||
|
@ -79,7 +79,7 @@ a((color & 0x000000ff) >> 0 )
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
Uint32 Color::toInteger()
|
||||
Uint32 Color::toInteger() const
|
||||
{
|
||||
return (r << 24) | (g << 16) | (b << 8) | a;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user