commit f601f79346b8ebc2f96ac8da6836674de62b4bf5
parent 3ff510467aed69a79858cf26d9f98de01aabef05
Author: cfillion <cfillion@users.noreply.github.com>
Date: Thu, 4 Feb 2016 20:53:08 -0800
richedit: zoom out a little bit on windows
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/richedit.cpp b/src/richedit.cpp
@@ -103,6 +103,9 @@ bool RichEdit::setRichText(const string &rtf)
LONG lines = (LONG)SendMessage(handle(), EM_GETLINECOUNT, 0, 0);
SendMessage(handle(), EM_LINESCROLL, 0, -lines);
+ // scale down a little bit, by default everything is way to big
+ SendMessage(handle(), EM_SETZOOM, 3, 4);
+
return true;
}
#endif