[tekui-devel] tekui: Bug fixed in determination of thickness of underlines

Timm S. Mueller tmueller at neoscientists.org
Thu May 15 00:08:28 CEST 2008


details:   http://hg.teklib.org/tekui/rev/8abfe232d7d4
changeset: 490:8abfe232d7d4
user:      Timm S. Mueller <tmueller at neoscientists.org>
date:      Sun May 11 20:07:32 2008 +0200
description:
Bug fixed in determination of thickness of underlines

diffs (12 lines):

diff -r 275c66f9ea3d -r 8abfe232d7d4 src/display_x11/display_x11_font.c
--- a/src/display_x11/display_x11_font.c	Sun May 11 20:02:00 2008 +0200
+++ b/src/display_x11/display_x11_font.c	Sun May 11 20:07:32 2008 +0200
@@ -1539,7 +1539,7 @@ x11_hostgetfattrfunc(struct THook *hook,
 			{
 				XGetFontProperty(fn->font, XA_UNDERLINE_THICKNESS, &ult);
 			}
-			*((TTAG *) item->tti_Value) = (TTAG) TMIN(1, ult);
+			*((TTAG *) item->tti_Value) = (TTAG) TMAX(1, ult);
 			break;
 		}
 


More information about the tekui-devel mailing list