mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-12 10:37:00 +00:00
gui: initialize structs to default value
Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
parent
36bce8fa0a
commit
84c55b25a9
1 changed files with 2 additions and 3 deletions
|
|
@ -4,7 +4,6 @@
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
#include "ARM/cpu.h"
|
|
||||||
#include "Base/Config.h"
|
#include "Base/Config.h"
|
||||||
#include "Base/Logging/Backend.h"
|
#include "Base/Logging/Backend.h"
|
||||||
#include "JIT/jit.h"
|
#include "JIT/jit.h"
|
||||||
|
|
@ -41,7 +40,7 @@ int main()
|
||||||
|
|
||||||
const size_t panels_capacity = 2;
|
const size_t panels_capacity = 2;
|
||||||
const char* panel_names[panels_capacity] = {PANEL_NAME_CPU, PANEL_NAME_PERFORMANCE};
|
const char* panel_names[panels_capacity] = {PANEL_NAME_CPU, PANEL_NAME_PERFORMANCE};
|
||||||
bool panels_visibility[panels_capacity] = {false};
|
bool panels_visibility[panels_capacity] = {};
|
||||||
bool imgui_demo_visible = false;
|
bool imgui_demo_visible = false;
|
||||||
|
|
||||||
gui::gui_t gui = {
|
gui::gui_t gui = {
|
||||||
|
|
@ -60,7 +59,7 @@ int main()
|
||||||
bool show_cpu_result_popup = false;
|
bool show_cpu_result_popup = false;
|
||||||
while (true == is_running)
|
while (true == is_running)
|
||||||
{
|
{
|
||||||
SDL_Event event;
|
SDL_Event event = {};
|
||||||
while (::SDL_PollEvent(&event))
|
while (::SDL_PollEvent(&event))
|
||||||
{
|
{
|
||||||
(void)::ImGui_ImplSDL3_ProcessEvent(&event);
|
(void)::ImGui_ImplSDL3_ProcessEvent(&event);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue