diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-19 14:46:09 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-19 14:46:09 +1100 |
commit | 4b553e8fce75afd0ad0df2e752edafe739db44dc (patch) | |
tree | 2104a370f939a18bbc843169840ffb34ddbaab52 /include | |
parent | 6b444111ecfe47a3f94293c3959cf197e3415735 (diff) | |
download | scintilla-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 'include')
-rw-r--r-- | include/Scintilla.h | 1 | ||||
-rw-r--r-- | include/Scintilla.iface | 1 |
2 files changed, 2 insertions, 0 deletions
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,) |