[geany/geany] 7a9b2f: Fix style issues
Colomban Wendling
git-noreply at xxxxx
Fri Aug 9 08:06:03 UTC 2019
Branch: refs/heads/fractional_fonts
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Fri, 09 Aug 2019 08:06:03 UTC
Commit: 7a9b2f0c98c86925ddfa92f7963d9a877776f2a7
https://github.com/geany/geany/commit/7a9b2f0c98c86925ddfa92f7963d9a877776f2a7
Log Message:
-----------
Fix style issues
Modified Paths:
--------------
src/editor.c
src/sciwrappers.c
Modified: src/editor.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -4599,7 +4599,7 @@ void editor_set_font(GeanyEditor *editor, const gchar *font)
g_return_if_fail(editor);
pfd = pango_font_description_from_string(font);
- size = pango_font_description_get_size(pfd) / (gdouble)PANGO_SCALE;
+ size = pango_font_description_get_size(pfd) / (gdouble) PANGO_SCALE;
font_name = g_strdup_printf("!%s", pango_font_description_get_family(pfd));
pango_font_description_free(pfd);
Modified: src/sciwrappers.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -948,8 +948,8 @@ void sci_set_font_fractional(ScintillaObject *sci, gint style, const gchar *font
{
SSM(sci, SCI_STYLESETFONT, (uptr_t) style, (sptr_t) font);
- // Adding 0.5 is for rounding.
- SSM(sci, SCI_STYLESETSIZEFRACTIONAL, (uptr_t) style, SC_FONT_SIZE_MULTIPLIER*size + 0.5);
+ /* Adding 0.5 is for rounding. */
+ SSM(sci, SCI_STYLESETSIZEFRACTIONAL, (uptr_t) style, (sptr_t) (SC_FONT_SIZE_MULTIPLIER * size + 0.5));
}
/** Sets the font for a particular style.
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list