Skip to content

MUI - Migration to original grepWin Portable, update divers scripts and cleanup#5642

Merged
hpwamr merged 8 commits intorizonesoft:masterfrom
hpwamr:Mui_Beta
Apr 10, 2026
Merged

MUI - Migration to original grepWin Portable, update divers scripts and cleanup#5642
hpwamr merged 8 commits intorizonesoft:masterfrom
hpwamr:Mui_Beta

Conversation

@hpwamr
Copy link
Copy Markdown
Collaborator

@hpwamr hpwamr commented Apr 10, 2026

No description provided.

RaiKoHoff and others added 8 commits April 6, 2026 17:19
Addresses reported flickering and rendering problems on ARM64 devices
running Windows 11 25H2 by implementing ARM64-specific rendering
defaults, build configuration fixes, and redraw optimizations.

Rendering fixes:
- Default to SC_TECHNOLOGY_DIRECTWRITERETAIN on ARM64 to preserve
  back buffer between frames, avoiding blank flashes with Qualcomm
  Adreno GPUs and Win11 25H2 DWM compositor changes
- Wrap MsgThemeChanged() in WM_SETREDRAW FALSE/TRUE to suppress
  N intermediate repaints during heavy theme/DPI transitions
- Add WS_EX_COMPOSITED to main window on ARM64 for system-level
  double-buffering
- Remove RDW_ERASE from DarkMode ListView/TreeView RedrawWindow()
  calls to avoid background erase flash during theme changes

Build configuration fixes:
- Add _WIN64 preprocessor define to Scintilla, SciLexer, Lexilla
  ARM64 configurations (was missing, could cause 32-bit code paths)
- Add TargetMachine=MachineARM64 to all ARM64 linker sections across
  Notepad3, Scintilla, SciLexer, Lexilla projects
- Add CETCompat=false to Scintilla and SciLexer ARM64 configurations
  (CET is x86/x64 only, not compatible with ARM64)

Platform code improvements:
- Add _M_ARM64 detection for GrepWin binary selection (ARM64 was
  silently mapped to x64 binary via _WIN64 check)
- Add NP3_BUILD_ARM64 helper macro in TypeDefs.h for future
  ARM64-specific code paths
- Document RenderingTechnology setting in Build/Notepad3.ini with
  per-resolution override syntax and ARM64 troubleshooting tips

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add comprehensive ARM64 section to both CLAUDE.md and
copilot-instructions.md covering:

- Architecture detection (_M_ARM64 vs _WIN64 distinction)
- NP3_BUILD_ARM64 helper macro in TypeDefs.h
- ARM64 rendering defaults (DirectWriteRetain, WS_EX_COMPOSITED)
- ARM64 build config requirements (CETCompat, TargetMachine, _WIN64)
- GrepWin x64 emulation on ARM64
- Theme change flickering prevention (WM_SETREDRAW lock)
- ARM 32-bit not supported (solution config maps to Win32)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…M_Flickering

Revert "fix: try to fix flickering issue"
@hpwamr hpwamr merged commit 1ab9f18 into rizonesoft:master Apr 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants