diff options
author | 2023-01-12 17:59:59 +1100 | |
---|---|---|
committer | 2023-01-12 18:14:13 +1100 | |
commit | fee7047c16a04f816a0de031ec469f5b96be9f74 (patch) | |
tree | f9be050cbdb952d8315cc241648e5ddc8422b247 /src/emu/render.cpp | |
parent | 9e8064c85eb420e61df7ba56f197877680e642c6 (diff) |
-osd: Better XInput and SDL game controller input enhancements:
* Added initial support for XInput controller subtypes, starting with
driving, arcade and flight controllers.
* Check XInput capabilities to ignore buttons and hats that aren't
present.
* Added preliminary SDL Game Controller joystick provider. Reconnection
and mixed Game Controller/Joystick devices are unsupported.
* Show the input token for the highlighted control on input device
menus.
-ui: Allow menus to set required space above and below menu when metrics
change. Fixes the initial bad layout on the system selecton menu, or
bad layout after resizing windows.
Diffstat (limited to 'src/emu/render.cpp')
-rw-r--r-- | src/emu/render.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp index 32aebcf8eb7..89281b11dd2 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -1013,9 +1013,9 @@ void render_target::set_bounds(s32 width, s32 height, float pixel_aspect) m_width = width; m_height = height; m_bounds.x0 = m_bounds.y0 = 0; - m_bounds.x1 = (float)width; - m_bounds.y1 = (float)height; - m_pixel_aspect = pixel_aspect != 0.0? pixel_aspect : 1.0; + m_bounds.x1 = float(width); + m_bounds.y1 = float(height); + m_pixel_aspect = pixel_aspect != 0.0F ? pixel_aspect : 1.0F; } |