aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
AgeCommit message (Collapse)AuthorFilesLines
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
2019-02-24Remove font caching on Win32.Neil1-107/+7
2019-01-13Replace the only use of a function from <cctype> with a Scintilla function.Neil1-1/+0
Remove inclusion of <cctype> except in lexers as cctype functions often behave poorly and may crash for out of bounds arguments.
2019-01-06Bug [#2068]. Fix some clang-tidy warnings.Zufu Liu1-4/+4
2018-10-17Use nullptr, default brace and member initialisation for some simple cases.Neil1-39/+29
2018-07-31Change lifetime of textLayout for bidirectional so it is always released inNeil1-3/+4
ScreenLineLayout destructor. Allows multiple ScreenLineLayout calls and fixes a leak when only FindRangeIntervals called.
2018-07-10Use Select* macros from windowsx.h to avoid casts and for consistency.Neil1-8/+8
2018-06-02Define IScreenLineLayout as the main interface for implementing bidirectionalNeil1-216/+166
features by platform code. Implement IScreenLineLayout for Win32 / DirectWrite as ScreenLineLayout.
2018-05-24Fix warnings. Add const, constexpr, and noexcept. Initialize. Standard methods.Neil1-59/+64
Replace 0 and NULL with nullptr for COM, DirectWrite and least ambiguous cases.
2018-05-23Implement bidirectional mode bidiL2R for DirectDraw on Win32.Neil1-6/+419
2018-05-23Add definitions for bidirectional support to Platform.h and provide emptyNeil1-0/+41
implementations for each platform.
2018-05-22Add GradientRectangle method to Surface to draw rectangles with vertical orNeil1-0/+58
horizontal gradients.
2018-05-18Add <vector> to files that include Platform.h as likely needed in future.Neil1-1/+1
2018-05-15Replace ELEMENTS with std::size and drop inclusion of StringCopy.h.Neil1-1/+0
2018-05-14Avoid using 0 as NULL pointer.Neil1-1/+1
2018-05-14Fix warning.Neil1-1/+1
2018-05-14Use string_view for UniConversion functions.Neil1-6/+6
2018-05-14Modernize Platform.h (4) - update Surface to use string_view for text arguments.Neil1-60/+62
2018-05-14Modernize Platform.h (3) - update Surface to delete WidthChar, use size_t forNeil1-34/+7
Polygon and delete the standard copy and assignment methods.
2018-05-14Modernize Platform.h (2) - noexcept, const, constexpr.Neil1-12/+12
ColourDesired is an int instead of long for consistency over different platforms. Changes made to Point, PRectangle, and ColourDesired. RoundXYPosition removed.
2018-05-14Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-10/+8
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform.
2018-05-14Include <string_view> to allow future use in Platform interface and Unicode.Neil1-0/+1
2018-05-01Encapsulate conversions between WindowID and HWND and hoist cast out of switch.Neil1-26/+31