mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix hue picker scaling
This commit is contained in:
parent
a4cfc10898
commit
6b0d2b9b9a
|
@ -1586,8 +1586,8 @@ int CEditor::PopupColorPicker(CEditor *pEditor, CUIRect View)
|
|||
|
||||
pEditor->Graphics()->QuadsBegin();
|
||||
vec4 ColorTop, ColorBottom;
|
||||
float Offset = HuePicker.h/7.0f;
|
||||
for(int j = 0; j < 7; j++)
|
||||
float Offset = HuePicker.h/6.0f;
|
||||
for(int j = 0; j < 6; j++)
|
||||
{
|
||||
ColorTop = vec4(s_aColorIndices[j][0], s_aColorIndices[j][1], s_aColorIndices[j][2], 1.0f);
|
||||
ColorBottom = vec4(s_aColorIndices[j+1][0], s_aColorIndices[j+1][1], s_aColorIndices[j+1][2], 1.0f);
|
||||
|
|
Loading…
Reference in a new issue