Skip to content

Commit

Permalink
xrCore/_color.h: Fixed compiler warning about bitwise ops usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
plaes authored and Kaffeine committed Nov 10, 2015
1 parent be47ce0 commit 8150b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrCore/_color.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ICF u32 color_get_R(u32 rgba) { return (((rgba) >> 16) & 0xff); }
ICF u32 color_get_G(u32 rgba) { return (((rgba) >> 8) & 0xff); }
ICF u32 color_get_B(u32 rgba) { return ((rgba)& 0xff); }
ICF u32 color_get_A(u32 rgba) { return ((rgba) >> 24); }
ICF u32 subst_alpha(u32 rgba, u32 a) { return rgba&~color_rgba(0, 0, 0, 0xff) | color_rgba(0, 0, 0, a); }
ICF u32 subst_alpha(u32 rgba, u32 a) { return (rgba & ~color_rgba(0, 0, 0, 0xff)) | color_rgba(0, 0, 0, a); }
ICF u32 bgr2rgb(u32 bgr) { return color_rgba(color_get_B(bgr), color_get_G(bgr), color_get_R(bgr), 0); }
ICF u32 rgb2bgr(u32 rgb) { return bgr2rgb(rgb); }

Expand Down

0 comments on commit 8150b0d

Please sign in to comment.