aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-04-21 01:59:43 +0000
committernyamatongwe <devnull@localhost>2000-04-21 01:59:43 +0000
commit6956977bdf58be27805d82c1aa33fc9d4c384241 (patch)
tree473a1082dbd214e4a3d4bb7d0b13d2aa111ee029 /gtk/PlatGTK.cxx
parentcf9e0c55121fc58093e00e8aaae211ee52ecc147 (diff)
downloadscintilla-mirror-6956977bdf58be27805d82c1aa33fc9d4c384241.tar.gz
Changed font sizing to use more Windows compatible calculation
Some unfinished work on fixing folding bugs.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index a1e480030..57004f19f 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -236,6 +236,11 @@ int Surface::LogPixelsY() {
return 72;
}
+int Surface::DeviceHeightFont(int points) {
+ int logPix = LogPixelsY();
+ return (points * logPix + logPix / 2) / 72;
+}
+
void Surface::MoveTo(int x_, int y_) {
x = x_;
y = y_;