aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
AgeCommit message (Collapse)AuthorFilesLines
3 daysimplicitly instantiate RunStyles: support ptrdiff_t if it has the same ↵Robin Haberkorn4-16/+0
storage size as int, but does *not* alias it * This is the case e.g. on NetBSD 10 for ARMv6 where Sci::Position == ptrdiff_t == long int, but obviously for other platforms as well, where it causes "invalid conversion" and "undefined symbol" errors. Scintilla was testing for aliasability by comparing the storage size with sizeof() or PTRDIFF_MAX == INT_MAX at the preprocessor level. This was fundamentally flawed. * In LineVector<T>::InsertLines() we are now using the C++17 construct std::is_convertible_v<From*,To*> instead. * We need RunStyles<ptrdiff_t> as well on the affected platforms. AFAIK this is impossible to test for in a constant expression that can be used with the preprocessor. A workaround has been added previously for Haiku: https://groups.google.com/g/scintilla-interest/c/xPXquJUIXo8/m/BLXBpTTgBwAJ The workaround is not very robust, as probably nobody guarantees that ptrdiff_t never aliases on Haiku. If it does, you will suddenly get errors about duplicate template instantiations. Quite possibly, the explicit instantiations of RunStyles were wrong on certain 32-bit Linux variants as well. * We could have tried to explicitly instantiate RunStyles for all scalar types that could possibly be behind ptrdiff_t. Unfortunately, it would result in "possible loss of data" warnings on MSVC. Instead, we now implicitly instantiate RunStyles.
2025-06-22Stop making .BSC file as not needed and shows warnings.Neil1-1/+1
2025-06-12Squash some warnings, mostly by defining constants symbolically.Neil3-22/+26
2025-06-12Bug [#2482]. Force list colours to be opaque.Sven Ritter1-2/+2
Enlarge bitmap to avoid visible blank background between items.
2025-06-03Updates for version 5.5.7.Neil1-2/+2
2025-06-01Add SCI_SCROLLVERTICAL API.Neil1-0/+1
2025-05-24Remove line end space.Zufu Liu2-2/+2
2025-04-26For Korean IME VK_HANJA key, simplify code and avoid duplication and warnings.Neil1-19/+14
2025-04-23Encapsulate IME input context fully in IMContext class. All access to HIMC goesNeil1-71/+86
through this now.
2025-04-22Move common IME code from platform layers to ScintillaBase.Neil1-30/+0
2025-04-19Decrease warnings for reinterpret_cast since it is a common Win32 idiom to passNeil1-6/+6
pointers as integers to window procedures.
2025-04-19Move most of the implementation of the static ListBoxX::ControlWndProc to theNeil1-22/+25
member function ListBoxX::ListProc so it can directly access state. Stop using GWLP_USERDATA to hold the previous window procedure of subclassed window since it can be stored in the ListBoxX object with better type-safety. Decrease warnings for reinterpret_cast since it is a common Win32 idiom to pass pointers as integers to window procedures.
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.