Fix Checkbox using text color from Label (#357)

This commit is contained in:
veins1
2024-01-02 17:14:11 +05:00
committed by GitHub
parent 2c8dc854d4
commit 2ea84a11ac

View File

@ -2250,7 +2250,7 @@ int GuiCheckBox(Rectangle bounds, const char *text, bool *checked)
GuiDrawRectangle(check, 0, BLANK, GetColor(GuiGetStyle(CHECKBOX, TEXT + state*3)));
}
GuiDrawText(text, textBounds, (GuiGetStyle(CHECKBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_RIGHT)? TEXT_ALIGN_LEFT : TEXT_ALIGN_RIGHT, GetColor(GuiGetStyle(LABEL, TEXT + (state*3))));
GuiDrawText(text, textBounds, (GuiGetStyle(CHECKBOX, TEXT_ALIGNMENT) == TEXT_ALIGN_RIGHT)? TEXT_ALIGN_LEFT : TEXT_ALIGN_RIGHT, GetColor(GuiGetStyle(CHECKBOX, TEXT + (state*3))));
//--------------------------------------------------------------------
return result;