[geany/geany] 58b42a: Use SC_FONT_SIZE_MULTIPLIER instead of hard-coding its value

Colomban Wendling git-noreply at xxxxx
Fri Aug 9 08:04:36 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:04:36 UTC
Commit:      58b42a0405c687cd759a07ae7b5212829217fc69
             https://github.com/geany/geany/commit/58b42a0405c687cd759a07ae7b5212829217fc69

Log Message:
-----------
Use SC_FONT_SIZE_MULTIPLIER instead of hard-coding its value


Modified Paths:
--------------
    src/sciwrappers.c

Modified: src/sciwrappers.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -949,7 +949,7 @@ 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, 100.0*size + 0.5);
+	SSM(sci, SCI_STYLESETSIZEFRACTIONAL, (uptr_t) style, 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