Skip to content

Commit

Permalink
Make sdl.Color be of type color.NRGBA
Browse files Browse the repository at this point in the history
  • Loading branch information
mokiat committed Nov 20, 2023
1 parent 4d8250b commit e06e035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdl/pixels.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type cPalette C.SDL_Palette

// Color represents a color. This implements image/color.Color interface.
// (https://wiki.libsdl.org/SDL_Color)
type Color color.RGBA
type Color color.NRGBA

// Uint32 return uint32 representation of RGBA color.
// NOTE: Don't use this as color for SDL2's rendering operations. For that, please use `sdl.MapRGB()` or `sdl.MapRGBA()`.
Expand Down

0 comments on commit e06e035

Please sign in to comment.