Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: HaikuArchives/Calendar
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 428ec4e79522
Choose a base ref
...
head repository: HaikuArchives/Calendar
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3ea1580e2177
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 19, 2021

  1. Fixed r g b uint8 warning

    scottmc authored and pulkomandy committed Oct 19, 2021
    Copy the full SHA
    3ea1580 View commit details
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/utils/ColorConverter.cpp
6 changes: 3 additions & 3 deletions src/utils/ColorConverter.cpp
Original file line number Diff line number Diff line change
@@ -24,9 +24,9 @@ HexToRGB(const BString& color)
{
const char* hexColor = color.String();
int rgb = (int)strtol(hexColor, NULL, 16);
int r = rgb >> 16;
int g = rgb >> 8 & 0xFF;
int b = rgb & 0xFF;
uint8 r = rgb >> 16;
uint8 g = rgb >> 8 & 0xFF;
uint8 b = rgb & 0xFF;

return (rgb_color){r, g, b};
}