fix unsigned integer overflow when passing args to composite_bitmap

This commit is contained in:
Dane Springmeyer 2013-10-01 21:29:22 -07:00
parent 81f14b8d36
commit d84443b4f3

View File

@ -614,7 +614,7 @@ void text_renderer<T>::render(pixel_position const& pos)
{
FT_Error error;
FT_Vector start;
unsigned height = pixmap_.height();
int height = pixmap_.height();
start.x = static_cast<FT_Pos>(pos.x * (1 << 6));
start.y = static_cast<FT_Pos>((height - pos.y) * (1 << 6));