xo-imgui: ex4a: tidy
This commit is contained in:
parent
10b1cff790
commit
a5eeba74c1
2 changed files with 3 additions and 3 deletions
|
|
@ -473,12 +473,12 @@ MinimalImGuiVulkan::main_loop()
|
||||||
{
|
{
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
|
|
||||||
while (!quit) {
|
while (!quit_flag_) {
|
||||||
while (SDL_PollEvent(&event)) {
|
while (SDL_PollEvent(&event)) {
|
||||||
ImGui_ImplSDL2_ProcessEvent(&event);
|
ImGui_ImplSDL2_ProcessEvent(&event);
|
||||||
|
|
||||||
if (event.type == SDL_QUIT) {
|
if (event.type == SDL_QUIT) {
|
||||||
quit = true;
|
this->quit_flag_ = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -284,5 +284,5 @@ private:
|
||||||
* until swapchain in consistent state.
|
* until swapchain in consistent state.
|
||||||
*/
|
*/
|
||||||
bool framebuffer_resized_flag_ = false;
|
bool framebuffer_resized_flag_ = false;
|
||||||
bool quit = false;
|
bool quit_flag_ = false;
|
||||||
}; /*MinimalImGuiVulkan*/
|
}; /*MinimalImGuiVulkan*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue