mirror of
https://github.com/raysan5/raygui.git
synced 2025-12-25 10:22:33 -05:00
Fix Checkbox using text color from Label (#357)
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user