mirror of https://github.com/stella-emu/stella.git
added DEGREE and ELLIPSIS chars to allowed PopUpWidget chars
This commit is contained in:
parent
135ee8748d
commit
287ab8b742
|
@ -39,6 +39,9 @@ PopUpWidget::PopUpWidget(GuiObject* boss, const GUI::Font& font,
|
||||||
_textcolor = kTextColor;
|
_textcolor = kTextColor;
|
||||||
_textcolorhi = kTextColor; // do not highlight the label
|
_textcolorhi = kTextColor; // do not highlight the label
|
||||||
|
|
||||||
|
setTextFilter([](char c) {
|
||||||
|
return isprint(c) && c != '\"' || c == '\x1c' || c == '\x1d'; // DEGREE || ELLIPSIS
|
||||||
|
});
|
||||||
setEditable(false);
|
setEditable(false);
|
||||||
|
|
||||||
if(!_label.empty() && _labelWidth == 0)
|
if(!_label.empty() && _labelWidth == 0)
|
||||||
|
|
Loading…
Reference in New Issue