From 9164b0c5bd86ce44df4783e6a26173c04dd90202 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 28 Jul 2018 15:03:09 +1000 Subject: ignore SVG dimensions, like we always did (nw) --- src/emu/screen.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/emu/screen.cpp b/src/emu/screen.cpp index a3f762071b2..2ec5b660876 100644 --- a/src/emu/screen.cpp +++ b/src/emu/screen.cpp @@ -722,10 +722,15 @@ void screen_device::device_start() m_svg = std::make_unique(reg); machine().output().set_notifier(nullptr, svg_renderer::output_notifier, m_svg.get()); - // The OSD picks up the size before start is called, so this only affect the info display if it's called up in-game - m_width = m_svg->width(); - m_height = m_svg->height(); - m_visarea.set(0, m_width-1, 0, m_height-1); + // don't do this - SVG units are arbitrary and interpreting them as pixels causes bad things to happen + // just render at the size/aspect ratio supplied by the driver + if (false) + { + // The OSD picks up the size before start is called, so this only affect the info display if it's called up in-game + m_width = m_svg->width(); + m_height = m_svg->height(); + m_visarea.set(0, m_width - 1, 0, m_height - 1); + } } // if we have a palette and it's not started, wait for it -- cgit v1.2.3