From bf7c7cfff009a7c065b48ae1805750cd60df40d8 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Thu, 8 Nov 2012 21:51:19 +0100 Subject: [PATCH] Fixed masking of font size --- ogl_editor/src/TrackView.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogl_editor/src/TrackView.c b/ogl_editor/src/TrackView.c index eb77585..e964973 100644 --- a/ogl_editor/src/TrackView.c +++ b/ogl_editor/src/TrackView.c @@ -65,7 +65,7 @@ static int renderChannel(const TrackViewInfo* viewInfo, struct sync_track* track int x_adjust = 0; Emgui_setFont(viewInfo->smallFontId); - text_size = Emgui_getTextSize(track->name) + 4; + text_size = (Emgui_getTextSize(track->name) & 0xffff) + 4; // if text is smaller than min size we center the text