April 14, 2026
5:17 a.m.
Rémi Bernon (@rbernon) commented about dlls/win32u/pointer.c:
+ TRACE( "looking for pointer id %d\n", id ); + + LIST_FOR_EACH_ENTRY(pointer, &thread_data->known_pointers, struct pointer, entry) + if (pointer->id == id) + return pointer; + + return NULL; +} + +static POINT pixel_to_himetric(POINT px) { + UINT dpi = HIMETRIC / get_system_dpi(); + + return (POINT) { + .x = px.x * dpi, + .y = px.y * dpi, + }; We don't use these constructs in Wine yet. It's perhaps acceptable to introduce new usages but it will only make it more difficult to get your patches accepted if you add extra portability questions to be considered.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10649#note_136038