summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/render.c
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2014-02-26 00:21:06 +0000
committer Couriersud <couriersud@users.noreply.github.com>2014-02-26 00:21:06 +0000
commitc32fba0da7af26016f9db0e266b7e8089d4e173d (patch)
treed4d2417a99324bfdbeabccdef1406d280b40e7f0 /src/emu/render.c
parent13b36398f9b61586109056a836f013d0b9d05d61 (diff)
Minor cosmetic changes for netlist
Diffstat (limited to 'src/emu/render.c')
-rw-r--r--src/emu/render.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/render.c b/src/emu/render.c
index 57b31a12a70..bff2c367295 100644
--- a/src/emu/render.c
+++ b/src/emu/render.c
@@ -401,7 +401,7 @@ void render_texture::release()
void render_texture::set_bitmap(bitmap_t &bitmap, const rectangle &sbounds, texture_format format)
{
- assert(bitmap.cliprect().contains(sbounds));
+ //assert(bitmap.cliprect().contains(sbounds));
// ensure we have a valid palette for palettized modes
if (format == TEXFORMAT_PALETTE16 || format == TEXFORMAT_PALETTEA16)
@@ -1338,7 +1338,10 @@ render_primitive_list &render_target::get_primitives()
// if there is no associated element, it must be a screen element
if (curitem->screen() != NULL)
+ {
add_container_primitives(list, item_xform, curitem->screen()->container(), blendmode);
+ curitem->screen()->set_render_size((int) item_xform.xscale, (int) item_xform.yscale);
+ }
else
add_element_primitives(list, item_xform, *curitem->element(), curitem->state(), blendmode);
}
@@ -1701,7 +1704,6 @@ void render_target::add_container_primitives(render_primitive_list &list, const
prim->bounds.x1 = render_round_nearest(container_xform.xoffs + bounds.x1 * container_xform.xscale);
prim->bounds.y1 = render_round_nearest(container_xform.yoffs + bounds.y1 * container_xform.yscale);
}
-
// compute the color of the primitive
prim->color.r = container_xform.color.r * curitem->color().r;
prim->color.g = container_xform.color.g * curitem->color().g;