summaryrefslogtreecommitdiff
path: root/ide-signature-help.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-02 14:10:38 -0500
committerpommicket <pommicket@gmail.com>2023-01-02 14:10:38 -0500
commitf791aa01fad7e81223808584212c6a1a4c80ca07 (patch)
treef93d53a62035cdad7f16b97fb28c83c7acfaf14f /ide-signature-help.c
parentc0d0117a963cf8e4dfb28b919087d8a8ecbbca6e (diff)
finish restructuring
Diffstat (limited to 'ide-signature-help.c')
-rw-r--r--ide-signature-help.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ide-signature-help.c b/ide-signature-help.c
index 0e6fd91..e573f3e 100644
--- a/ide-signature-help.c
+++ b/ide-signature-help.c
@@ -117,9 +117,10 @@ void signature_help_frame(Ted *ted) {
float width = buffer->x2 - buffer->x1;
float height = FLT_MAX;
+ const float char_height = text_font_char_height(font);
// make sure signature help doesn't take up too much space
while (1) {
- height = font->char_height * signature_count;
+ height = char_height * signature_count;
if (height < (buffer->y2 - buffer->y1) * 0.25f)
break;
--signature_count;
@@ -146,7 +147,7 @@ void signature_help_frame(Ted *ted) {
text_utf8_with_state(font, &state, signature->label_pre);
text_utf8_with_state(font_bold, &state, signature->label_active);
text_utf8_with_state(font, &state, signature->label_post);
- y += font->char_height;
+ y += char_height;
}
gl_geometry_draw();