summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/drawgdi.cpp
diff options
context:
space:
mode:
author Brad Hughes <bradhugh@outlook.com>2016-04-17 18:27:07 -0400
committer Brad Hughes <bradhugh@outlook.com>2016-04-18 10:03:01 -0400
commit870db16e99efcb64a95ca1e321e8dacc389ce53e (patch)
treee3d1db14b8498d4cd06f55a65529f9700f8d6e57 /src/osd/modules/render/drawgdi.cpp
parent55d3e544e013174880c8f208264683aac6d711f9 (diff)
Standardize platform window pointer storage in osd_window.
Also encapsulate show/hide capture/release cursor functionality.
Diffstat (limited to 'src/osd/modules/render/drawgdi.cpp')
-rw-r--r--src/osd/modules/render/drawgdi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/modules/render/drawgdi.cpp b/src/osd/modules/render/drawgdi.cpp
index ec1e5f57a4a..bfc949e5296 100644
--- a/src/osd/modules/render/drawgdi.cpp
+++ b/src/osd/modules/render/drawgdi.cpp
@@ -46,7 +46,7 @@ int renderer_gdi::create()
render_primitive_list *renderer_gdi::get_primitives()
{
RECT client;
- GetClientRect(window().m_hwnd, &client);
+ GetClientRect(window().platform_window<HWND>(), &client);
window().target()->set_bounds(rect_width(&client), rect_height(&client), window().pixel_aspect());
return &window().target()->get_primitives();
}
@@ -63,7 +63,7 @@ int renderer_gdi::draw(const int update)
// get the target bounds
RECT bounds;
- GetClientRect(window().m_hwnd, &bounds);
+ GetClientRect(window().platform_window<HWND>(), &bounds);
// compute width/height/pitch of target
int width = rect_width(&bounds);