mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-06-08 01:03:08 +00:00
fix(jui): always use white if background is disabled in EditBox
This commit is contained in:
parent
d18733b14c
commit
9a2062c70a
|
|
@ -88,7 +88,7 @@ void EditBox::render() {
|
|||
if (active) {
|
||||
bool renderUnderscore = inFocus && (frame / 6 % 2 == 0);
|
||||
drawString(font, value + (renderUnderscore ? L"_" : L""), textX, textY,
|
||||
0xe0e0e0);
|
||||
(enableBackgroundDrawing ? 0xe0e0e0 : 0xffffff));
|
||||
} else {
|
||||
drawString(font, value, textX, textY,
|
||||
(enableBackgroundDrawing ? 0xe0e0e0 : 0xffffff));
|
||||
|
|
|
|||
Loading…
Reference in a new issue