Blender Git Loki

Git Commits -> Revision d6facd4

September 6, 2021, 07:33 (GMT)
Fix T88909: Win32 getTitle() UTF8 Support

In the Win32 platform our setTitle() can properly assign a Unicode
utf-8 window title. Unfortunately our getTitle() will only read regular
8-bit character strings. This means that we can never compare what we
set to what we get. This patch updates getTitle() to use Unicode-aware
GetWindowTextLengthW and GetWindowTextW.

see T88909 for an example of this affecting user experience.

Differential Revision: https://developer.blender.org/D11782

Reviewed by Ray Molenkamp

Commit Details:

Full Hash: d6facd44b53108575381ca0637cd0fff73d45391
Parent Commit: 933c6b7
Committed By: Jeroen Bakker
Lines Changed: +7, -3

1 Modified Path:

/intern/ghost/intern/GHOST_WindowWin32.cpp (+7, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021