Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions impeller/playground/compute_playground_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ std::shared_ptr<RuntimeStage> ComputePlaygroundTest::OpenAssetAsRuntimeStage(

static std::string FormatWindowTitle(const std::string& test_name) {
std::stringstream stream;
stream << "Impeller Playground for '" << test_name
<< "' (Press ESC or 'q' to quit)";
stream << "Impeller Playground for '" << test_name << "' (Press ESC to quit)";
return stream.str();
}

Expand Down
4 changes: 2 additions & 2 deletions impeller/playground/playground.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static void PlaygroundKeyCallback(GLFWwindow* window,
int scancode,
int action,
int mods) {
if ((key == GLFW_KEY_ESCAPE || key == GLFW_KEY_Q) && action == GLFW_RELEASE) {
if ((key == GLFW_KEY_ESCAPE) && action == GLFW_RELEASE) {
if (mods & (GLFW_MOD_CONTROL | GLFW_MOD_SUPER | GLFW_MOD_SHIFT)) {
gShouldOpenNewPlaygrounds = false;
}
Expand Down Expand Up @@ -227,7 +227,7 @@ bool Playground::OpenPlaygroundHere(
::glfwShowWindow(window);

while (true) {
::glfwWaitEventsTimeout(1.0 / 30.0);
::glfwPollEvents();

if (::glfwWindowShouldClose(window)) {
return true;
Expand Down
3 changes: 1 addition & 2 deletions impeller/playground/playground_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ std::shared_ptr<RuntimeStage> PlaygroundTest::OpenAssetAsRuntimeStage(

static std::string FormatWindowTitle(const std::string& test_name) {
std::stringstream stream;
stream << "Impeller Playground for '" << test_name
<< "' (Press ESC or 'q' to quit)";
stream << "Impeller Playground for '" << test_name << "' (Press ESC to quit)";
return stream.str();
}

Expand Down