summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-14 16:41:43 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-14 16:41:43 +0300
commit5fee2a9dfbe21f329c0955328606c69560129672 (patch)
tree958e21213f8cb27ff9275e7f4e8cf675cb66f64c /plugins/NewStory/src/utils.cpp
parent054bb1949247445a29a68812579800904edf6a02 (diff)
fixes #3781 (Newstory: Problems with scrolling, and crash)
Diffstat (limited to 'plugins/NewStory/src/utils.cpp')
-rw-r--r--plugins/NewStory/src/utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/NewStory/src/utils.cpp b/plugins/NewStory/src/utils.cpp
index 3e342e7f0c..4c5b3817a2 100644
--- a/plugins/NewStory/src/utils.cpp
+++ b/plugins/NewStory/src/utils.cpp
@@ -36,6 +36,11 @@ bool CheckFilter(wchar_t *buf, wchar_t *filter)
return false;
}
+int GetFontHeight(const LOGFONTA &lf)
+{
+ return 2 * abs(lf.lfHeight) * 74 / g_iPixelY;
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
struct