March 12, 2026
9:47 a.m.
Use a clip region to protect the tab item background when drawing the text of an owner-draw tab control. This partially reverts 0d173d01. Tests show that the top edge of the rcItem in DRAWITEMSTRUCT shouldn't be added 2 pixels for a owner-draw tab, and the tab item background can't be overwritten when painting the text, which suggests the presence of a clip region. Fix the text position being off by 2 pixels for an application, which uses the rcItem in DRAWITEMSTRUCT to calculate text position. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10307