diff options
author | pommicket <pommicket@gmail.com> | 2023-01-02 14:10:38 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-02 14:10:38 -0500 |
commit | f791aa01fad7e81223808584212c6a1a4c80ca07 (patch) | |
tree | f93d53a62035cdad7f16b97fb28c83c7acfaf14f /ide-hover.c | |
parent | c0d0117a963cf8e4dfb28b919087d8a8ecbbca6e (diff) |
finish restructuring
Diffstat (limited to 'ide-hover.c')
-rw-r--r-- | ide-hover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ide-hover.c b/ide-hover.c index ecca8d8..254f56d 100644 --- a/ide-hover.c +++ b/ide-hover.c @@ -120,8 +120,8 @@ void hover_frame(Ted *ted, double dt) { const u32 *colors = settings->colors; const char *text = hover->text; Font *font = ted->font; - float x = ted->mouse_pos.x, y = ted->mouse_pos.y + font->char_height; - float char_height = font->char_height; + float char_height = text_font_char_height(font); + float x = ted->mouse_pos.x, y = ted->mouse_pos.y + char_height; buffer_highlight_lsp_range(buffer, hover->range); |