Page MenuHome

UI_GetThemeColorShadeAlpha4fv not clamping Alpha

Authored by Harley Acheson (harley) on Jun 10 2019, 1:25 AM.



This looks like a simple "copy and paste" error.

In UI_GetThemeColorShadeAlpha4fv() there are vars for r,g,b,a assigned values and all should be clamped. Alpha is not clamped, but Blue channel is clamped twice.

This patch fixes this so all four channels are clamped as intended.

Diff Detail

rB Blender

Event Timeline

Fine to commit now.

This revision is now accepted and ready to land.Jun 17 2019, 6:56 PM
This revision was automatically updated to reflect the committed changes.