mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 08:20:30 +02:00
Fix wrong logic causing excessive software transform fallback if cull planes are missing. Minor cleanup.
This commit is contained in:
1 parent
702088c2d0
commit
847953fd31
5 files changed
+25
-19
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user