Port 3 out of 4 recent Win32 commits

This commit is contained in:
Cacodemon345
2021-12-23 01:56:56 +06:00
parent 5b598bf3b0
commit f481574a0f
5 changed files with 19 additions and 8 deletions

View File

@@ -54,6 +54,8 @@ extern "C" {
#include <86box/86box.h>
#include <86box/device.h>
#include <86box/gameport.h>
#include <86box/timer.h>
#include <86box/nvr.h>
#include <86box/plat_dynld.h>
#include <86box/config.h>
#include <86box/ui.h>
@@ -328,6 +330,9 @@ plat_pause(int p)
static wchar_t oldtitle[512];
wchar_t title[512];
if ((p == 0) && (time_sync & TIME_SYNC_ENABLED))
nvr_time_sync();
dopause = p;
if (p) {
wcsncpy(oldtitle, ui_window_title(NULL), sizeof_w(oldtitle) - 1);