st/wgl: use ARRAY_SIZE() macro in wglChoosePixelFormatARB()

Trivial.
This commit is contained in:
Brian Paul 2017-04-28 21:32:05 -06:00
parent 394f8dacbc
commit d06045dfdd

View file

@ -342,7 +342,7 @@ score_pixelformats(struct stw_pixelformat_score *scores,
/* Find out if a given attribute should be considered for score calculation.
*/
for (i = 0; i < sizeof(attrib_match) / sizeof(attrib_match[0]); i++) {
for (i = 0; i < ARRAY_SIZE(attrib_match); i++) {
if (attrib_match[i].attribute == attribute) {
ami = &attrib_match[i];
break;