svg screen: add verbose message instead of aspect ratio helper (nw)

This commit is contained in:
hap 2019-03-07 04:08:26 +01:00
parent cf2e2c031d
commit 83d028d832

View File

@ -119,22 +119,7 @@ screen_device::svg_renderer::svg_renderer(memory_region *region)
m_sx = m_sy = 0;
m_scale = 1.0;
#if 0
double ar = m_image->width / m_image->height;
int w,h;
if (ar < (16.0/9.0))
{
h = 1080;
w = (h * ar) + 0.5;
}
else
{
w = 1920;
h = (w / ar) + 0.5;
}
printf("\n\nMCFG_SCREEN_SIZE(%d, %d)\nMCFG_SCREEN_VISIBLE_AREA(0, %d-1, 0, %d-1)\n", w, h, w, h);
#endif
osd_printf_verbose("Parsed SVG '%s', aspect ratio %f\n", region->name(), (m_image->height == 0.0f) ? 0 : m_image->width / m_image->height);
}
screen_device::svg_renderer::~svg_renderer()
@ -730,6 +715,10 @@ void screen_device::device_resolve_objects()
void screen_device::device_start()
{
// if we have a palette and it's not started, wait for it
if (m_palette && !m_palette->device().started())
throw device_missing_dependencies();
if (m_type == SCREEN_TYPE_SVG)
{
memory_region *reg = owner()->memregion(m_svg_region);
@ -749,10 +738,6 @@ void screen_device::device_start()
}
}
// if we have a palette and it's not started, wait for it
if (m_palette && !m_palette->device().started())
throw device_missing_dependencies();
// configure bitmap formats and allocate screen bitmaps
// svg is RGB32 too, and doesn't have any update method
texture_format texformat = !m_screen_update_ind16.isnull() ? TEXFORMAT_PALETTE16 : TEXFORMAT_RGB32;