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

@@ -149,6 +149,11 @@ strnicmp(const char *s1, const char *s2, size_t n)
#endif
}
void
do_start(void)
{
}
void
do_stop(void)
{
@@ -425,12 +430,6 @@ plat_power_off(void)
QTimer::singleShot(0, (const QWidget *) main_window, &QMainWindow::close);
}
void
set_language(uint32_t id)
{
lang_id = id;
}
extern "C++" {
QMap<uint32_t, QPair<QString, QString>> ProgSettings::lcid_langcode = {
{ 0x0403, { "ca-ES", "Catalan (Spain)" } },
@@ -741,12 +740,6 @@ plat_get_cpu_string(char *outbuf, uint8_t len) {
}
double
plat_get_dpi(void)
{
return util::screenOfWidget(main_window)->devicePixelRatio();
}
void
plat_set_thread_name(void *thread, const char *name)
{

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)
{