Mercurial > hg > octave-nkf
diff src/gl-render.cc @ 9405:7cc35bc348cc
Install text engine headers and fix rendering of 90x rotated text.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Sun, 28 Jun 2009 08:51:41 +0100 (2009-06-28) |
parents | 4af6e29449c1 |
children | c0c23dbbade7 |
line wrap: on
line diff
--- a/src/gl-render.cc +++ b/src/gl-render.cc @@ -3037,16 +3037,16 @@ case ft_render::ROTATION_90: std::swap (x0, y0); std::swap (w, h); - x0 -= bbox(3); + x0 = -x0-bbox(3); break; case ft_render::ROTATION_180: - x0 -= bbox(2); - y0 -= bbox(3); + x0 = -x0-bbox(2); + y0 = -y0-bbox(3); break; case ft_render::ROTATION_270: std::swap (x0, y0); std::swap (w, h); - y0 -= bbox(2); + y0 = -y0-bbox(2); break; }