summaryrefslogtreecommitdiffstats
path: root/src/osd/mac/window.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-01-21 23:33:53 +1100
committer Vas Crabb <vas@vastheman.com>2021-01-21 23:33:53 +1100
commit7cfe419ca809eb8572f5a0c1e85e8170342c028e (patch)
treec64b2e2230ff7b23fe9122bf74096ddef3420c00 /src/osd/mac/window.cpp
parentef82fd102d548e70aa73e3ba189a6e2d5464b405 (diff)
-osd/windows: Minimise full-screen windows on losing focus (#2997).
-osd/modules/osdwindow.cpp: Clean up window title formatting. * Show data type model in window title. * Moved window title formatting to a single place. -tools/chdman.cpp: Removed some unnecessary .c_str() calls.
Diffstat (limited to 'src/osd/mac/window.cpp')
-rw-r--r--src/osd/mac/window.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/osd/mac/window.cpp b/src/osd/mac/window.cpp
index cff0f5a8b79..9d570f1595f 100644
--- a/src/osd/mac/window.cpp
+++ b/src/osd/mac/window.cpp
@@ -313,12 +313,6 @@ int mac_window_info::window_init()
set_renderer(osd_renderer::make_for_type(video_config.mode, static_cast<osd_window*>(this)->shared_from_this()));
- // make the window title
- if (video_config.numscreens == 1)
- sprintf(m_title, "%s: %s [%s]", emulator_info::get_appname(), machine().system().type.fullname(), machine().system().name);
- else
- sprintf(m_title, "%s: %s [%s] - Screen %d", emulator_info::get_appname(), machine().system().type.fullname(), machine().system().name, index());
-
result = complete_create();
// handle error conditions
@@ -515,7 +509,7 @@ void mac_window_info::update()
// complete_create
//============================================================
-extern void *CreateMAMEWindow(char *title, int x, int y, int w, int h, bool isFullscreen);
+extern void *CreateMAMEWindow(const char *title, int x, int y, int w, int h, bool isFullscreen);
extern void *GetOSWindow(void *wincontroller);
int mac_window_info::complete_create()
@@ -552,7 +546,7 @@ int mac_window_info::complete_create()
// get monitor work area for centering
osd_rect work = monitor()->usuable_position_size();
- auto window = CreateMAMEWindow(m_title,
+ auto window = CreateMAMEWindow(title().c_str(),
work.left() + (work.width() - temp.width()) / 2,
work.top() + (work.height() - temp.height()) / 2,
temp.width(), temp.height(), fullscreen());