Skip to content

Commit 5c8ea88

Browse files
committed
resized the debugger window (it was too big)
1 parent 8b99bb5 commit 5c8ea88

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

emulator/src/Gui/ui.cpp

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void gui_loop() {
4242
}
4343

4444
int test_gui() {
45-
window = SDL_CreateWindow("CasioEmuX", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 1816, 1100, window_flags);
45+
window = SDL_CreateWindow("CasioEmuX", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 900, 600, window_flags);
4646
renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_PRESENTVSYNC | SDL_RENDERER_ACCELERATED);
4747
if (renderer == nullptr) {
4848
SDL_Log("Error creating SDL_Renderer!");
@@ -54,36 +54,16 @@ int test_gui() {
5454
io.WantCaptureKeyboard = true;
5555
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls
5656
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls
57-
io.FontGlobalScale = 1.0 / 0.5;
58-
// io.WantTextInput = true;
59-
// io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // IF using Docking Branch
57+
io.FontGlobalScale = 1.0f;
6058

6159
// Setup Platform/Renderer backends
6260
ImGui::StyleColorsDark();
6361

6462
// Setup Platform/Renderer backends
6563
ImGui_ImplSDL2_InitForSDLRenderer(window, renderer);
6664
ImGui_ImplSDLRenderer2_Init(renderer);
67-
// bool show_demo_window = true;
68-
// bool show_another_window = false;
69-
// char buf[100]{0};
70-
// Main loop
71-
// bool done = false;
72-
while (!m_emu)
73-
;
65+
7466
code_viewer = new CodeViewer(m_emu->GetModelFilePath("_disas.txt"));
7567

7668
return 0;
77-
// ImGui_ImplSDL2_InitForSDLRenderer(renderer);
78-
}
79-
80-
void gui_cleanup() {
81-
// Cleanup
82-
ImGui_ImplSDLRenderer2_Shutdown();
83-
ImGui_ImplSDL2_Shutdown();
84-
ImGui::DestroyContext();
85-
86-
SDL_DestroyRenderer(renderer);
87-
SDL_DestroyWindow(window);
88-
SDL_Quit();
8969
}

0 commit comments

Comments
 (0)