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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user