I'm making a Minesweeper in pygame but when I set the icon it changes the color. The icon that I get is bluer than the expected icon and I don't understand why. Here's the code that I use:
import pygame as pg
pg.init()
window = pg.display.set_mode(size)
icon = pg.image.load("icon.png")
pg.display.set_icon(icon)
pg.display.set_caption("Minesweeper")
I tried to use icon = pg.image.load("icon.png").convert() and icon = pg.image.load("icon.png").convert_alpha() but it doesn't work.
Do you know why it does this and how to fix it?



