fix: Update Window Event Handling and Emulator Destructor Logic
- Added handling for SDL_WINDOWEVENT_RESIZED, SDL_WINDOWEVENT_MINIMIZED, SDL_WINDOWEVENT_HIDDEN, SDL_WINDOWEVENT_RESTORED, and SDL_WINDOWEVENT_SHOWN in the window event processing to improve rendering behavior during window state changes. - Modified the Emulator destructor to stop emulation without calling Cleanup(), as the renderer is already destroyed, ensuring proper shutdown behavior.
This commit is contained in:
@@ -50,7 +50,9 @@ using ImGui::TableNextColumn;
|
||||
using ImGui::Text;
|
||||
|
||||
Emulator::~Emulator() {
|
||||
Cleanup();
|
||||
// Don't call Cleanup() in destructor - renderer is already destroyed
|
||||
// Just stop emulation
|
||||
running_ = false;
|
||||
}
|
||||
|
||||
void Emulator::Cleanup() {
|
||||
|
||||
Reference in New Issue
Block a user