mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-08-08 08:25:11 +00:00
update_window_title can be used to update statistics about the display (such as display resolution) or about DingusPPC in general (such as "mouse grabbed" status). A DPPC_WINDOWEVENT_MOUSE_GRAB_CHANGED window event is added so that Display::handle_events can update the "mouse grabbed" indicator in each display window. The event handler doesn't check the window ID because the status should be reflected in all windows. The SDL_WINDOWEVENT_SIZE_CHANGED event causes the window to update the display resolution indicator. In the future, we might add indicators for HD and CD and floppy disk activity, etc. They will be handled by a window event handler or a general DPPC event handler.