WebView: Make font size settings more accurate.

[GB.QT4.WEBVIEW]
* BUG: WebView: Make font size settings more accurate.
This commit is contained in:
gambas 2021-01-28 04:52:30 +01:00
parent c4d87b624c
commit 7d002263c6

View file

@ -116,9 +116,9 @@ END_METHOD
static void handle_font_size(QWebSettings::FontSize size, void *_object, void *_param)
{
if (READ_PROPERTY)
GB.ReturnInteger(get_settings(_object)->fontSize(size));
GB.ReturnInteger(get_settings(_object)->fontSize(size) * 76 / 92);
else
get_settings(_object)->setFontSize(size, VPROP(GB_INTEGER));
get_settings(_object)->setFontSize(size, VPROP(GB_INTEGER) * 92 / 76);
}
BEGIN_PROPERTY(WebSettingsFonts_DefaultSize)