summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/windows/window.h')
-rw-r--r--src/osd/windows/window.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/osd/windows/window.h b/src/osd/windows/window.h
index e96ffec1563..55cb074babb 100644
--- a/src/osd/windows/window.h
+++ b/src/osd/windows/window.h
@@ -66,10 +66,11 @@ public:
float aspect() const { return monitor()->aspect(); }
+ virtual void get_size(int &w, int &h) = 0;
+
#ifdef OSD_SDL
virtual void blit_surface_size(int &blitwidth, int &blitheight) = 0;
virtual sdl_monitor_info *monitor() const = 0;
- virtual void get_size(int &w, int &h) = 0;
#if (SDLMAME_SDL2)
virtual SDL_Window *sdl_window() = 0;
#else
@@ -169,6 +170,14 @@ public:
return GetMenu(m_hwnd) ? true : false;
}
+ /* virtual */ void get_size(int &w, int &h)
+ {
+ RECT client;
+ GetClientRect(m_hwnd, &client);
+ w = client.right - client.left;
+ h = client.bottom - client.top;
+ }
+
win_monitor_info *monitor() const { return m_monitor; }
win_window_info * m_next;