Fix wrong logic causing excessive software transform fallback if cull planes are missing. Minor cleanup.

This commit is contained in:
Henrik Rydgård committed 2026-05-31 13:31:16 +02:00
1 parent 702088c2d0
commit 847953fd31
5 files changed
+25 -19

No files matched your search

+5
View File
@@ -442,6 +442,11 @@ bool ViewSearch::Key(UI::ViewGroup *viewGroup, const KeyInput &input) {
if (input.flags & KeyInputFlags::CHAR) {
const int unichar = input.keyCode;
if (unichar >= 0x20 && unichar != 127) { // 127 gets produced from Ctrl+Backspace on Windows for some reason.
// Don't allow spaces as the first character, it looks confusing (empty search field)
if (searchFilter.empty() && unichar == ' ') {
return false;
}
// TODO: Save focus state here.
// Insert it! (todo: do it with a string insert)
char buf[8];