summaryrefslogtreecommitdiff
path: root/src/terminal-screen.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-08-03 11:32:13 +0200
committerraveit65 <[email protected]>2020-09-01 11:23:25 +0200
commit16e1a1f7f2387382c91ea5fb093c956378ac78e8 (patch)
tree7d194dd17334d2faa5f4f04ac39fb44d7048ecbc /src/terminal-screen.c
parentb4e0423456c4d974bde57d9cd4f95c1fca623214 (diff)
downloadmate-terminal-16e1a1f7f2387382c91ea5fb093c956378ac78e8.tar.bz2
mate-terminal-16e1a1f7f2387382c91ea5fb093c956378ac78e8.tar.xz
Remove -Wfloat-conversion warnings
Diffstat (limited to 'src/terminal-screen.c')
-rw-r--r--src/terminal-screen.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index ba30e39..01bec75 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -1167,6 +1167,7 @@ terminal_screen_set_font (TerminalScreen *screen)
TerminalScreenPrivate *priv = screen->priv;
TerminalProfile *profile;
PangoFontDescription *desc;
+ int size;
profile = priv->profile;
@@ -1176,14 +1177,11 @@ terminal_screen_set_font (TerminalScreen *screen)
g_object_get (profile, TERMINAL_PROFILE_FONT, &desc, NULL);
g_assert (desc);
+ size = pango_font_description_get_size (desc);
if (pango_font_description_get_size_is_absolute (desc))
- pango_font_description_set_absolute_size (desc,
- priv->font_scale *
- pango_font_description_get_size (desc));
+ pango_font_description_set_absolute_size (desc, priv->font_scale * size);
else
- pango_font_description_set_size (desc,
- priv->font_scale *
- pango_font_description_get_size (desc));
+ pango_font_description_set_size (desc, (int)(priv->font_scale * size));
vte_terminal_set_font (VTE_TERMINAL (screen), desc);