mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fix type conversion warnings
This commit is contained in:
parent
9052ccf218
commit
e01aa152c1
@ -70,7 +70,7 @@ a(alpha)
|
||||
////////////////////////////////////////////////////////////
|
||||
Color::Color(Uint32 color) :
|
||||
r((color & 0xff000000) >> 24),
|
||||
g((color & 0x00ff0000) >> 16),
|
||||
g(static_cast<Uint8>((color & 0x00ff0000) >> 16)),
|
||||
b((color & 0x0000ff00) >> 8 ),
|
||||
a((color & 0x000000ff) >> 0 )
|
||||
{
|
||||
|
@ -391,8 +391,8 @@ float Font::getKerning(Uint32 first, Uint32 second, unsigned int characterSize,
|
||||
FT_UInt index2 = FT_Get_Char_Index(face, second);
|
||||
|
||||
// Retrieve position compensation deltas generated by FT_LOAD_FORCE_AUTOHINT flag
|
||||
float firstRsbDelta = getGlyph(first, characterSize, bold).rsbDelta;
|
||||
float secondLsbDelta = getGlyph(second, characterSize, bold).lsbDelta;
|
||||
float firstRsbDelta = static_cast<float>(getGlyph(first, characterSize, bold).rsbDelta);
|
||||
float secondLsbDelta = static_cast<float>(getGlyph(second, characterSize, bold).lsbDelta);
|
||||
|
||||
// Get the kerning vector if present
|
||||
FT_Vector kerning;
|
||||
|
Loading…
Reference in New Issue
Block a user