Skip to content

Make Color use uint for ARGB.#21358

Merged
PunkPun merged 1 commit into
OpenRA:bleedfrom
RoosterDragon:color-uint
Mar 9, 2024
Merged

Make Color use uint for ARGB.#21358
PunkPun merged 1 commit into
OpenRA:bleedfrom
RoosterDragon:color-uint

Conversation

@RoosterDragon

Copy link
Copy Markdown
Member

This is a more natural representation than int that allows removal of casts in many places that require uint. Additionally, we can change the internal representation from long to uint, making the Color struct smaller. Since arrays of colors are common, this can save on memory.

This is a more natural representation than int that allows removal of casts in many places that require uint. Additionally, we can change the internal representation from long to uint, making the Color struct smaller. Since arrays of colors are common, this can save on memory.
Comment thread OpenRA.Mods.Common/Traits/Palettes/PaletteFromRGBA.cs

@PunkPun PunkPun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PunkPun PunkPun merged commit 5f97e2d into OpenRA:bleed Mar 9, 2024
@PunkPun

PunkPun commented Mar 9, 2024

Copy link
Copy Markdown
Member

changelog

@RoosterDragon RoosterDragon deleted the color-uint branch March 10, 2024 14:05
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.

3 participants