On Mon Apr 27 15:12:03 2026 +0000, Aric Stewart wrote:
So we start with 2 * cChars + 16, and then you double below. 16 characters would be something like `2*16+16=48 ` doubled => `2*(2*16+16)=96` doubled again => `2*2*(2*16+16)=192` Your boundry is `8 * 16 + 16 => 144` So you would get 2 passes out of this code really no matter what but it is strangely opaque. What may be more clear is to have a multiplier that starts at 2, Then above you can have `int numGlyphs = 2 * cChar + 16;` be `int numGlyphs = multiplier * cChar + 16;` Then in your look you iterate increasing multiplayer to something like 4. If above 4 then bail out. I think that would make this loop clearer good point, I will do that.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10612#note_137759