Fix incorrect carat pulse timing

This commit is contained in:
elasota
2020-12-17 19:48:57 -05:00
parent 032e44d981
commit ebab2ee188

View File

@@ -361,7 +361,7 @@ namespace PortabilityLayer
const bool haveEvent = WaitForEvent(&evt, 1); const bool haveEvent = WaitForEvent(&evt, 1);
if (window->IsHandlingTickEvents()) if (!haveEvent && window->IsHandlingTickEvents())
window->OnTick(); window->OnTick();
const int16_t selection = (filterFunc != nullptr) ? filterFunc(captureContext, this, haveEvent ? &evt : nullptr) : -1; const int16_t selection = (filterFunc != nullptr) ? filterFunc(captureContext, this, haveEvent ? &evt : nullptr) : -1;