Browse Source

Adapted to Magnum changes.

Oh boy.
pull/34/head
Vladimír Vondruš 13 years ago
parent
commit
f5afcc055d
  1. 4
      src/Plugins/MagnumFont/MagnumFont.cpp

4
src/Plugins/MagnumFont/MagnumFont.cpp

@ -220,8 +220,8 @@ std::tuple<Rectangle, Rectangle, Vector2> MagnumFontLayouter::renderGlyph(Unsign
const Rectangle texturePosition = Rectangle::fromSize(Vector2(position)/fontSize,
Vector2(rectangle.size())/fontSize);
const Rectangle textureCoordinates(Vector2(rectangle.bottomLeft())/cache.textureSize(),
Vector2(rectangle.topRight())/cache.textureSize());
const Rectangle textureCoordinates(Vector2(rectangle.bottomLeft())/Vector2(cache.textureSize()),
Vector2(rectangle.topRight())/Vector2(cache.textureSize()));
/* Absolute quad position, composed from cursor position, glyph offset
and texture position, denormalized to requested text size */

Loading…
Cancel
Save