From 4b553e8fce75afd0ad0df2e752edafe739db44dc Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 19 Mar 2021 14:46:09 +1100 Subject: 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. --- include/Scintilla.h | 1 + include/Scintilla.iface | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/Scintilla.h b/include/Scintilla.h index d586e8fe8..da104a552 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -1019,6 +1019,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_EOLANNOTATIONSETSTYLEOFFSET 2747 #define SCI_EOLANNOTATIONGETSTYLEOFFSET 2748 #define SC_SUPPORTS_LINE_DRAWS_FINAL 0 +#define SC_SUPPORTS_PIXEL_DIVISIONS 1 #define SCI_SUPPORTSFEATURE 2750 #define SCI_STARTRECORD 3001 #define SCI_STOPRECORD 3002 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 44d00500b..6868dec0b 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2877,6 +2877,7 @@ get int EOLAnnotationGetStyleOffset=2748(,) enu Supports=SC_SUPPORTS_ val SC_SUPPORTS_LINE_DRAWS_FINAL=0 +val SC_SUPPORTS_PIXEL_DIVISIONS=1 # Get whether a feature is supported get int SupportsFeature=2750(Supports feature,) -- cgit v1.2.3