summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/window.h
diff options
context:
space:
mode:
author couriersud <couriersud@arcor.de>2015-02-22 01:14:37 +0100
committer couriersud <couriersud@arcor.de>2015-02-22 01:14:37 +0100
commitd2ea4df4ad7b439697aa1db1ce022dba49aeffdc (patch)
tree55e57c38e4035e0fc52f4d2ec4ad3036618adc17 /src/osd/windows/window.h
parent9151c0a9e262089bdd6cf3e9bde40ab97a9eb413 (diff)
Make OpenGL renderer available in mainline build as well. This needs to
be explicitly enabled by specifying USE_OPENGL=1. More code alignment. [Couriersud]
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;