Editor blank after screen saver (DirectWrite)

46 views
Skip to first unread message

Thomas Linder Puls

unread,
Oct 1, 2025, 5:53:51 AMOct 1
to scintilla-interest
When our editors are using DirectWrite they become blank (not redrawn) after the screen saver has been activated.  As soon as the window gets focus the content is redrawn.

How do I avoid this problem?

Regards Thomas Linder Puls

scintilla 5.5.0 and lexilla 5.3.2 on Windows 11.

Neil

unread,
Oct 1, 2025, 4:56:56 PMOct 1
to scintilla-interest
It's unclear what is happening. Perhaps Windows is trying to just reshow the buffer and its clear or invalid (incompatible with new screen configuration).

Some tracing may help. Is Scintilla receiving a WM_PAINT? Is that paint failing in a way that can be detected like EndDraw returning D2DERR_RECREATE_TARGET?

It may be possible to produce a work-around like posting a message to perform a redraw after screen saver has ended. Couldn't find a screen saver ended event but there is WM_SYSCOMMAND with SC_SCREENSAVE for start of screen saver.

Neil

Thomas Linder Puls

unread,
Nov 7, 2025, 5:16:16 AMNov 7
to scintilla-interest
The problem has disappeared all by itself.  So I assume that it was some glitch at my computer.

Thomas

Neil Hodgson

unread,
Nov 7, 2025, 5:53:03 PMNov 7
to scintilla...@googlegroups.com
Thomas Linder Puls:

> The problem has disappeared all by itself. So I assume that it was some glitch at my computer.

There have been reports of various problems with drivers. In
particular, Intel drivers have been a bit flakey.

If this occurs again, it'd be worthwhile trying the other DirectWrite
modes. SC_TECHNOLOGY_DIRECTWRITEDC may be more compatible as it
retreats to standard HDC redraw, just backing that with drawing
through Direct2D to a bitmap then copying that to the HDC. It is less
efficient than SC_TECHNOLOGY_DIRECTWRITE or
SC_TECHNOLOGY_DIRECT_WRITE_1 but likely not noticeable in most cases.

Neil
Message has been deleted

Thomas Linder Puls

unread,
Nov 12, 2025, 5:10:37 AMNov 12
to scintilla-interest
Thank you.

The "glitch" has reappeared, so I tried the other technologies and  SC_TECHNOLOGY_DIRECTWRITEDC works (and default also).
The other ones has the problem.

Thomas

(My device is a NVIDIA Quadro P620 and I expect they have good drivers)
Reply all
Reply to author
Forward
0 new messages