aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/PlatCocoa.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-19 14:46:09 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-19 14:46:09 +1100
commit4b553e8fce75afd0ad0df2e752edafe739db44dc (patch)
tree2104a370f939a18bbc843169840ffb34ddbaab52 /cocoa/PlatCocoa.h
parent6b444111ecfe47a3f94293c3959cf197e3415735 (diff)
downloadscintilla-mirror-4b553e8fce75afd0ad0df2e752edafe739db44dc.tar.gz
Add Surface::PixelDivisions which detects 'retina' displays that use
multiple display pixels per logical pixel. Likely will only return >1 for Apple displays. Can be used for finer placement of elements.
Diffstat (limited to 'cocoa/PlatCocoa.h')
-rw-r--r--cocoa/PlatCocoa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cocoa/PlatCocoa.h b/cocoa/PlatCocoa.h
index 18d339536..870b61aa3 100644
--- a/cocoa/PlatCocoa.h
+++ b/cocoa/PlatCocoa.h
@@ -88,6 +88,7 @@ public:
void CopyImageRectangle(Surface &surfaceSource, PRectangle srcRect, PRectangle dstRect);
int LogPixelsY() override;
+ int PixelDivisions() override;
int DeviceHeightFont(int points) override;
void MoveTo(int x_, int y_) override;
void LineTo(int x_, int y_) override;