Skip to content

[rcore_rgfw] Icon color format fix#5724

Merged
raysan5 merged 1 commit intoraysan5:masterfrom
Crisspl:rcore-rgfw-icon-color-fix
Apr 5, 2026
Merged

[rcore_rgfw] Icon color format fix#5724
raysan5 merged 1 commit intoraysan5:masterfrom
Crisspl:rcore-rgfw-icon-color-fix

Conversation

@Crisspl
Copy link
Copy Markdown
Contributor

@Crisspl Crisspl commented Apr 5, 2026

After RGFW update to 2.0.0-dev in fbd83ca, RGFW_window_setIcon api has changed -- not it takes pixel format enum instead of number of channels. On raylib side it was still passing 4 (number of channels in rgba) which is enum value for BGRA8. Instead we have to pass 2 now (RGFW_formatRGBA8 = 2).

After RGFW update to 2.0.0-dev in fbd83ca, RGFW_window_setIcon api has changed -- not it takes pixel format enum instead of number of channels. On raylib side it was still passing 4 (number of channels in rgba) which is enum value for BGRA8. Instead we have to pass 2 now (RGFW_formatRGBA8 = 2).
@raysan5 raysan5 merged commit 4a6ceb9 into raysan5:master Apr 5, 2026
16 checks passed
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Apr 5, 2026

@Crisspl thanks for the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants