March 8, 2026
8:01 p.m.
On Mon Mar 9 01:01:47 2026 +0000, Esme Povirk wrote:
If we can implement this function correctly without a window DC (and I see no reason we can't), then I see no reason to use one even if the window still exists. We can probably get away with a temporary HDC, but if not, any screen DC would probably work. You're absolutely right. When calculating, `GdipMeasureString` can likely complete the computation based solely on the parameters and the data recorded inside `graphics`. So, in essence, it could indeed uniformly use a temporary HDC to handle all scenarios. Should I modify the patch to uniformly use a temporary HDC in `GdipMeasureString`?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10235#note_131562