19 Jun
2024
19 Jun
'24
11:28 a.m.
On Wed Jun 19 07:18:23 2024 +0000, Rémi Bernon wrote:
```suggestion:-10+0 if (!count) return TRUE; if (count == 1 && attributes[0] == WGL_NUMBER_PIXEL_FORMATS_ARB) { values[0] = num_formats; return TRUE; } if (index <= 0 || index > num_formats) { SetLastError( invalid_data_error ); return FALSE; } ``` Sorry, I used GL_ prefixed constants in my suggestion, but I think it's better to use the same constants everywhere in this function. As the return type is BOOL and not GLboolean, I'd suggest to use TRUE/FALSE instead.
Ack, updated in v3. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5844#note_73725