Clean up the plat and ui API

Remove functions no longer defined or used on any plat/UI
Remove the old non-multi-monitor-aware plat_resize() and rename
plat_resize_monitor() to plat_resize()
This commit is contained in:
Alexander Babikov
2024-03-16 19:53:11 +05:00
parent b3819f6962
commit 23ba920bbf
6 changed files with 14 additions and 62 deletions

View File

@@ -95,14 +95,14 @@ plat_resize_request(int w, int h, int monitor_index)
if (video_fullscreen || is_quit)
return;
if (vid_resize & 2) {
plat_resize_monitor(fixed_size_x, fixed_size_y, monitor_index);
plat_resize(fixed_size_x, fixed_size_y, monitor_index);
} else {
plat_resize_monitor(w, h, monitor_index);
plat_resize(w, h, monitor_index);
}
}
void
plat_resize_monitor(int w, int h, int monitor_index)
plat_resize(int w, int h, int monitor_index)
{
if (monitor_index >= 1)
main_window->resizeContentsMonitor(w, h, monitor_index);
@@ -110,12 +110,6 @@ plat_resize_monitor(int w, int h, int monitor_index)
main_window->resizeContents(w, h);
}
void
plat_setfullscreen(int on)
{
main_window->setFullscreen(on > 0 ? true : false);
}
void
plat_mouse_capture(int on)
{