[teklib-general] changeset in /hg/teklib/current: TVisual_TextWidth/Height and Fo...

Timm S. Mueller tmueller at neoscientists.org
Mon Nov 26 16:23:47 CET 2007


changeset 53f3ad93fd51 in /hg/teklib/current
details: http://teklib.org:8001/hg/teklib/current?cmd=changeset;node=53f3ad93fd51
description:
	TVisual_TextWidth/Height and FontWidth/Height no longer defined

diffs (34 lines):

diff -r 65dd15959a30 -r 53f3ad93fd51 src/lua/modules/tek/lua_tek_vis.c
--- a/src/lua/modules/tek/lua_tek_vis.c	Mon Sep 17 20:12:16 2007 +0200
+++ b/src/lua/modules/tek/lua_tek_vis.c	Mon Sep 17 23:45:58 2007 +0200
@@ -327,24 +327,24 @@ luavis_getattrs(lua_State *L)
 	tags[0].tti_Value = (TTAG) &pw;
 	tags[1].tti_Tag = TVisual_PixHeight;
 	tags[1].tti_Value = (TTAG) &ph;
-	tags[2].tti_Tag = TVisual_TextWidth;
+/*	tags[2].tti_Tag = TVisual_TextWidth;
 	tags[2].tti_Value = (TTAG) &tw;
 	tags[3].tti_Tag = TVisual_TextHeight;
 	tags[3].tti_Value = (TTAG) &th;
 	tags[4].tti_Tag = TVisual_FontWidth;
 	tags[4].tti_Value = (TTAG) &fw;
 	tags[5].tti_Tag = TVisual_FontHeight;
-	tags[5].tti_Value = (TTAG) &fh;
-	tags[6].tti_Tag = TTAG_DONE;
+	tags[5].tti_Value = (TTAG) &fh;*/
+	tags[2].tti_Tag = TTAG_DONE;
 
 	TVisualGetAttrs(*pv, tags);
 	lua_pushnumber(L, pw);
 	lua_pushnumber(L, ph);
-	lua_pushnumber(L, tw);
+/*	lua_pushnumber(L, tw);
 	lua_pushnumber(L, th);
 	lua_pushnumber(L, fw);
-	lua_pushnumber(L, fh);
-	return 6;
+	lua_pushnumber(L, fh);*/
+	return 2;
 }
 
 static LUACFUNC TINT


More information about the teklib-general mailing list