changeset 10202:f0e0775a2503

scale text position
author Shai Ayal <shaiay@users.sourceforge.net>
date Tue, 26 Jan 2010 23:10:24 +0200
parents 5c66978f3fdf
children 27777bd27e71
files src/ChangeLog src/gl-render.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-26  Shai Ayal  <shaiay@users.sourceforge.net>
+
+	* gl-render.cc (draw_text): scale position.
+
 2010-01-26  John W. Eaton  <jwe@octave.org>
 
 	* dirfns.cc (Fmkdir, Frmdir, Flink, Fsymlink, Freadlink,
--- a/src/gl-render.cc
+++ b/src/gl-render.cc
@@ -2669,7 +2669,7 @@
   set_color (props.get_color_rgb ());
 
   // FIXME: take "units" into account
-  const Matrix pos = props.get_position ().matrix_value ();
+  const Matrix pos = xform.scale (props.get_position ().matrix_value ());
   int halign = 0, valign = 0;
 
   if (props.horizontalalignment_is ("center"))