wired-tomato / WayGL

Force MC to use wayland on supported systems
MIT License
17 stars 5 forks source link

Fix the icon injection #4

Closed moehreag closed 10 months ago

moehreag commented 10 months ago

You probably didn't notice that, but the format the icon is set is different between lwjgl2 (RGBA) and lwjgl3 (ARGB). Since awt's BufferedImage only accepts ARGB values, the pixel colors needed to be modified (with Integer.rotateRight). You may decide yourself whether you also want to include the second commit.