aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
AgeCommit message (Collapse)AuthorFilesLines
2020-07-15Stronger argument validation in BlobInline methods.Neil1-1/+9
2020-07-15Add extra checking and assertions for NULLs.Neil1-30/+34
Use ReleaseUnknown which is noexcept making it easier to reason about exceptions. Add constexpr where possible.
2020-07-11Removed GetNearestColor as paletted displays are no longer supported.Neil1-3/+1
2020-06-15Use ReleaseUnknown to extend noexcept over finalisation.Zufu Liu1-22/+9
2020-06-13Add include that defines back_inserter.Greg Smith1-0/+1
2020-06-11Bug [#2185]. Fix printing to use correct text size.Neil1-1/+3
2020-06-06Implement gradients for GDI. GradientRectangle previously drew an average of theNeil1-5/+60
first two stops over the whole rectangle.
2020-06-06Add DIBSection class to simplify bitmap operations on GDI.Neil1-66/+121
2020-06-06Avoid type-pun union when converting from RGBA colour to DWORD as this may beNeil1-13/+9
undefined or implementation defined behaviour. Drop some casts by hoisting out part of dwordMultiplied.
2020-06-06Specify locally visible methods as noexcept.Neil1-20/+20
2020-06-06Prefer .data() over &[0] as more explicit.Neil1-10/+7
Use range for when reasonable. Prefer transform over explicit loop.
2020-06-06Add ReleaseUnknown to safely release IUnknown* and avoid warnings when done inNeil1-12/+4
noexcept context.
2020-06-06Bug [#2063]. On Windows 8.1 where GetDpiForWindow is not available, useZufu Liu1-0/+23
GetDpiForMonitor to emulate it.
2020-06-06Use call_once for initialising Direct2D so only done once even with threads.Neil1-59/+61
2020-06-06Defer most initialisation until Scintilla window is created.Neil1-3/+5
Previously, more initialisation was performed inside DllMain but some actions such as loading libraries are unsafe inside DllMain. Avoid listbox UnregisterClass if no attempt to register which will occur if no Scintilla windows were created. std::call_once is used to ensure initialisation is performed at most once.
2020-05-28Bug [#2063]. Call AdjustWindowRectExForDpi when available to find correct size.Zufu Liu1-8/+16
2020-05-27Bug [#2063]. Make reverse arrow cursor scale with DPI.Zufu Liu1-9/+21
2020-05-27Bug [#2063]. Add SystemMetricsForDpi and use for ListBox and mouse drag and ↵Zufu Liu1-10/+36
drop. Simplify IME font definition.
2020-05-20Fix some minor warnings.Neil1-15/+14
2020-05-19Bug [#2171]. Implement per-monitor DPI Awareness on Windows.Neil1-21/+38
2020-05-19Encapsulate GetProcAddress in a way that avoids undefined and conditionallyNeil1-26/+22
defined behaviour.
2020-04-05Feature [feature-requests:1345]. Use ListBox_ macros in preference to LB_Neil1-10/+10
messages. Modify types to match.
2020-04-05Feature [feature-requests:1345] Use more typesafe code to clear window pointers,Neil1-4/+4
share implementation of window pointers between files, use GetWindowStyle.
2020-03-26Fix spelling mistakes.Neil1-2/+2
2020-03-25Replace const with constexpr where possible.Neil1-10/+6
2020-03-17Remove CRITICAL_SECTION by creating reverse arrow cursor at initialization.Neil1-30/+17
InitializeCriticalSection inside DllMain can cause exceptions on old Windows.
2020-02-15Extract image conversion from RGBA to BGRA premultiplied into common function.Neil1-21/+6
2020-02-15Bug [#2138]. For pixmap, balance call to BeginDraw with EndDraw.Neil1-0/+2
This avoids a warning when Direct2D debugging turned on.
2020-02-14Use dynamic_cast and assertion instead of static_cast to fail earlier if thereNeil1-13/+19
is a bug.
2020-02-09Use uniform initialization for resetting GDI handles to avoid NULL/0 warnings.Neil1-20/+20
Changed HDC, HPEN, HBRUSH, HFONT, HRGN, and HBITMAP.
2020-02-09Feature [feature-requests:#1340] Move and use Point functions to avoid casting.Zufu Liu1-4/+4
2020-01-31Avoid Clang warning with extra test.Neil1-5/+5
Harmonize types to avoid casts.
2020-01-31Use more typesafe functions to remove casts.Neil1-13/+5
2019-12-13Use safe mechanism for converting between function pointers and void*.Neil1-7/+6
2019-12-29Move suppression of Clang warning language-extension-token from makefile to onlyNeil1-0/+5
C++ file that requires it.
2019-12-12Bug [#2115]. Avoid Clang warnings with COM_DECLSPEC_NOTHROW from declaration.Neil1-8/+8
2019-12-03Bug [#2144]. Fixed drawing of translucent rounded rectangles with Direct2D.Neil1-1/+1
2019-11-21Make reference argument const as safe to do so.Neil1-4/+4
2019-05-29Bug [#2104]. Use 'l' long format length sub-specifier for HRESULT as it is long.Neil1-1/+1
2019-05-11Feature [feature-requests:#1283]. Standardise spelling - "color" -> "colour".Neil1-7/+7
2019-05-08Use value-initialization and nullptr (for true pointers) to avoid 'using NULL'Neil1-10/+5
warnings.
2019-04-28Use const and noexcept for private methods.Neil1-6/+6
2019-04-27Feature [feature-requests:#1279]. Removed invalid check when avoiding SelectFontNeil1-12/+7
if font not changed. Didn't correct the check as its not justified by minimal performance benefit so removed the supporting variable.
2019-04-12Bug [#2093]. Improve efficiency with single byte character sets.Zufu Liu1-2/+2
2019-04-11Feature [feature-requests:#1277]. Support coloured text on Windows 8.1+.Zufu Liu1-3/+15
2019-03-25Use generic std::abs instead of abs and fabs.Neil1-5/+5
2019-03-25Use generic versions of ceil, floor, round, lround, trunc from <cmath>.Neil1-15/+15
2019-03-20Implement WStringFromUTF8 to simplify code that creates wstring objects forNeil1-4/+2
regular expressions and calling the Win32 API.
2019-03-18Add some operators to Point to simplify client code.Neil1-3/+1
2019-02-24Use noexcept and constexpr where possible and reasonable.Neil1-37/+31