summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/rendlay.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/rendlay.c')
-rw-r--r--src/emu/rendlay.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/emu/rendlay.c b/src/emu/rendlay.c
index ab2ac02f581..49e10daae38 100644
--- a/src/emu/rendlay.c
+++ b/src/emu/rendlay.c
@@ -1929,18 +1929,18 @@ static int load_bounds(xml_data_node *boundsnode, render_bounds *bounds)
if (xml_get_attribute(boundsnode, "left") != NULL)
{
/* left/right/top/bottom format */
- bounds->x0 = xml_get_attribute_float_with_subst(boundsnode, "left", 0.0);
- bounds->x1 = xml_get_attribute_float_with_subst(boundsnode, "right", 1.0);
- bounds->y0 = xml_get_attribute_float_with_subst(boundsnode, "top", 0.0);
- bounds->y1 = xml_get_attribute_float_with_subst(boundsnode, "bottom", 1.0);
+ bounds->x0 = xml_get_attribute_float_with_subst(boundsnode, "left", 0.0f);
+ bounds->x1 = xml_get_attribute_float_with_subst(boundsnode, "right", 1.0f);
+ bounds->y0 = xml_get_attribute_float_with_subst(boundsnode, "top", 0.0f);
+ bounds->y1 = xml_get_attribute_float_with_subst(boundsnode, "bottom", 1.0f);
}
else if (xml_get_attribute(boundsnode, "x") != NULL)
{
/* x/y/width/height format */
- bounds->x0 = xml_get_attribute_float_with_subst(boundsnode, "x", 0.0);
- bounds->x1 = bounds->x0 + xml_get_attribute_float_with_subst(boundsnode, "width", 1.0);
- bounds->y0 = xml_get_attribute_float_with_subst(boundsnode, "y", 0.0);
- bounds->y1 = bounds->y0 + xml_get_attribute_float_with_subst(boundsnode, "height", 1.0);
+ bounds->x0 = xml_get_attribute_float_with_subst(boundsnode, "x", 0.0f);
+ bounds->x1 = bounds->x0 + xml_get_attribute_float_with_subst(boundsnode, "width", 1.0f);
+ bounds->y0 = xml_get_attribute_float_with_subst(boundsnode, "y", 0.0f);
+ bounds->y1 = bounds->y0 + xml_get_attribute_float_with_subst(boundsnode, "height", 1.0f);
}
else
{