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:
@@ -448,12 +448,6 @@ plat_get_ticks(void)
|
||||
return (uint32_t) (plat_get_ticks_common() / 1000);
|
||||
}
|
||||
|
||||
uint32_t
|
||||
plat_get_micro_ticks(void)
|
||||
{
|
||||
return (uint32_t) plat_get_ticks_common();
|
||||
}
|
||||
|
||||
void
|
||||
plat_remove(char *path)
|
||||
{
|
||||
@@ -578,9 +572,9 @@ main_thread(void *param)
|
||||
/* If needed, handle a screen resize. */
|
||||
if (atomic_load(&doresize_monitors[0]) && !video_fullscreen && !is_quit) {
|
||||
if (vid_resize & 2)
|
||||
plat_resize(fixed_size_x, fixed_size_y);
|
||||
plat_resize(fixed_size_x, fixed_size_y, 0);
|
||||
else
|
||||
plat_resize(scrnsz_x, scrnsz_y);
|
||||
plat_resize(scrnsz_x, scrnsz_y, 0);
|
||||
atomic_store(&doresize_monitors[0], 1);
|
||||
}
|
||||
}
|
||||
@@ -1358,12 +1352,6 @@ plat_vidapi_name(int i)
|
||||
return "default";
|
||||
}
|
||||
|
||||
void
|
||||
set_language(uint32_t id)
|
||||
{
|
||||
lang_id = id;
|
||||
}
|
||||
|
||||
/* Sets up the program language before initialization. */
|
||||
uint32_t
|
||||
plat_language_code(char *langcode)
|
||||
|
||||
@@ -424,9 +424,9 @@ sdl_init_common(int flags)
|
||||
sdl_set_fs(video_fullscreen);
|
||||
if (!(video_fullscreen & 1)) {
|
||||
if (vid_resize & 2)
|
||||
plat_resize(fixed_size_x, fixed_size_y);
|
||||
plat_resize(fixed_size_x, fixed_size_y, 0);
|
||||
else
|
||||
plat_resize(scrnsz_x, scrnsz_y);
|
||||
plat_resize(scrnsz_x, scrnsz_y, 0);
|
||||
}
|
||||
if ((vid_resize < 2) && window_remember) {
|
||||
SDL_SetWindowSize(sdl_win, window_w, window_h);
|
||||
@@ -479,7 +479,7 @@ plat_mouse_capture(int on)
|
||||
}
|
||||
|
||||
void
|
||||
plat_resize(int w, int h)
|
||||
plat_resize(int w, int h, UNUSED(int monitor_index))
|
||||
{
|
||||
SDL_LockMutex(sdl_mutex);
|
||||
resize_w = w;
|
||||
|
||||
Reference in New Issue
Block a user