aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
AgeCommit message (Collapse)AuthorFilesLines
2025-04-04Indent makefile more consistently to help clarify structure.Neil1-9/+9
2025-04-03Turn on type conversion warnings for GCC and fix them.Neil4-14/+16
2025-04-03Silence 'magic' number clang-tidy warning where there is intense use of literalNeil1-0/+6
constants for processing character encodings or similar and where declaring constants would make the code more obscure, not less.
2025-03-29Updates for version 5.5.6.Neil1-2/+2
2025-03-29Updated make dependencies.Neil2-0/+2
2025-03-29Use emplace_back to shorten code and avoid warning.Neil1-1/+1
2025-03-29Use constant definitions to avoid warnings.Neil2-6/+14
2025-03-29Simplify some boolean expressions and place brackets around subexpressions.Neil3-12/+8
2025-03-29Simplify WM_CHAR, particularly the handling of surrogate pairs.Neil1-11/+16
2025-03-29Harmonize types by prioritizing UINT32 over size_t since DirectWrite wantsNeil1-22/+22
UINT32.
2025-03-29Reorder fields to ensure textLayout destroyed before blobs which it depends on.Neil1-1/+2
Otherwise there may be a crash inside DirectWrite.
2025-03-29Updated make dependencies.Neil2-0/+2
2025-03-28Use constant definition to avoid warning.Neil1-1/+2
2025-03-28Standardize access to system colours through GetSysColor and avoid casts.Neil4-5/+11
2025-03-27Optimize case-insensitive DBCS search to be around 5 times faster by using 64KNeil1-45/+64
memory to cache folding data for each DBCS code page used.
2025-03-27Use constant definitions to avoid warnings.Neil1-14/+20
2025-03-27Use constant for pointsPerInch.Neil4-3/+6
2025-03-27Use empty method to avoid warnings.Neil1-3/+3
2025-03-25Feature [feature-requests:#1546]. Move build clutter from src directory byAhmet Sait1-2/+5
defaulting DIR_O to src\obj.
2025-03-25Feature [feature-requests:#1546]. Fix building for ARM64 on Win32.Ahmet Sait1-1/+6
2025-03-20Move SurfaceGDI, SurfaceD2D, ListBox, and associated code out of PlatWin.cxx toNeil15-3526/+3895
new files SurfaceGDI.cxx, SurfaceD2D.cxx, and ListBox.cxx + associated headers.
2025-03-20Standardize render target initialization.Neil3-44/+40
Use symbolic names for DPI instead of inline value 96.
2025-03-20Break CTWndProc into 3 methods by adding CTProcessMessage and CTPaint as it wasNeil1-79/+93
too long and complex.
2025-03-20Remove else after return where it decreases both nesting and number of lines.Neil1-163/+147
2025-03-19Avoid warnings with explicit, =default, and making deleted methods public.Neil1-13/+11
2025-03-19Avoid NULL warnings.Neil1-12/+12
2025-03-19Encapsulate WM_PAINT handling.Neil3-17/+23
2025-03-19Encapsulate GDI memory bitmap code into a GDIBitMap class.Neil1-103/+101
2025-03-18Set autocompletion list width by measuring each item to find the widest insteadNeil1-21/+19
of using an approximation which was sometimes wrong, clipping long items.
2025-03-18Use DirectWrite for autocompletion lists when DirectWrite chosen for documentNeil1-135/+204
text.
2025-03-17Standardize creation of DIB sections with common code always usingNeil1-23/+37
BITMAPV5HEADER for both GDI drawing and cursor creation.
2025-03-17Handle setting redraw back on correctly as documented by Microsoft.Neil1-2/+3
Will allow future simplification of logic and optimization.
2025-03-17Avoid null warning.Neil1-1/+1
2025-03-12Hoist RECT to PRectangle conversions into a function.Neil3-4/+8
2025-03-09Avoid warnings by replacing &[0] with .data(), adding [[nodiscard]], replacingNeil2-36/+36
typedef with using, and initialising at declaration.
2025-03-06Move static functions and variables into unnamed namespace and use constexpr.Neil1-12/+12
2025-02-22Updates for version 5.5.5.Neil1-2/+2
2025-02-20Move SizeOfRect to header to allow use in ScintillaWin.cxx where it simplifiesNeil3-8/+7
and avoids type warnings.
2025-02-19Silence warnings with explicit, using, noexcept, [[nodiscard]], unnamedNeil1-132/+118
namespace, = default, in-class default member initializers, avoiding NULL, avoiding unnecessary else. Use POINT for insets as POINT has integer fields avoiding casts. Simplified cursor setting.
2025-02-19Use ComPtr for render targets of SurfaceD2D.Neil1-14/+13
Add comments about different types of Surface.
2025-02-18Use ComPtr for text formats and text layouts.Neil1-59/+42
2025-02-18Use ComPtr for geometric and graphic objects: brush, geometry, geometry sink,Neil1-80/+78
stroke style, bitmap, and gradients to remove explicit release calls and possible leaks. Ensure HPEN and HBRUSH initialised. Not converting render targets, text formats or text layouts yet.
2025-02-17Switch to using ComPtr from WRL for render target code for simplicity andNeil4-134/+73
familiarity.
2025-02-12Debug tracing was accidentally turned on so turn it off again.Neil1-1/+1
2025-02-12Implement Direct2D/DirectWrite 1.1. Add SC_TECHNOLOGY_DIRECT_WRITE_1 to use anNeil3-49/+337
explicit swap chain and ID2D1DeviceContext. Stop supporting DirectWrite on Windows Vista.
2025-02-11Update Direct2D and DirectWrite functions and types to Direct2D 1.1.Neil4-14/+51
2025-02-10Use ID2D1HwndRenderTarget::Resize when handling WM_SIZE to avoid larger stateNeil1-1/+14
invalidation which may be more costly to restore.
2025-02-09Add RenderTargets to hold one render target at a time, either Hwnd or DC.Neil3-39/+74
Drawing code just needs one or the other but other calls need a particular type with casting hiding potential problems. This will be more important in the future when a third type of render target ID2D1DeviceContext will be added. Use unique_ptr more for render targets to ensure they are freed correctly.
2025-02-09Wrap GetClientRect so it can be used more easily to produce const result.Neil1-18/+21
Move GetSizeUFromRect earlier for possible new code.
2025-02-09Update Direct2D headers to Direct2D 1.1.Neil2-4/+4
Doesn't change functionality yet but ensures more recent APIs will be available.