diff options
author | 2020-10-14 21:26:08 +1100 | |
---|---|---|
committer | 2020-10-14 21:26:08 +1100 | |
commit | 01b907bf70cd0fba493d9574b5ac478ffd3c7984 (patch) | |
tree | c4bd560aee7de089d0f85f33ae72d0cceaf0cc42 /src/emu/render.cpp | |
parent | 459b3ac3c06c7ef4c8bf94ab7fff76c8a732487f (diff) |
-render.cpp: Fixed issue causing elements to be clipped on bottom/right.
-rendlay.cpp: Tidied up and optimised ellipse drawing code a little.
-Reduced space between LEDs on several systems with matrix displays.
Diffstat (limited to 'src/emu/render.cpp')
-rw-r--r-- | src/emu/render.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp index 5ade8c54af4..9c7e808bc9f 100644 --- a/src/emu/render.cpp +++ b/src/emu/render.cpp @@ -2527,20 +2527,14 @@ void render_target::add_element_primitives(render_primitive_list &list, const ob prim->full_bounds = prim->bounds; if (xform.orientation & ORIENTATION_SWAP_XY) std::swap(width, height); - width = std::min(width, m_maxtexwidth); - height = std::min(height, m_maxtexheight); + width = (std::min)(width, m_maxtexwidth); + height = (std::min)(height, m_maxtexheight); // get the scaled texture and append it - texture->get_scaled(width, height, prim->texture, list, prim->flags); // compute the clip rect - render_bounds cliprect; - cliprect.x0 = render_round_nearest(xform.xoffs); - cliprect.y0 = render_round_nearest(xform.yoffs); - cliprect.x1 = render_round_nearest(xform.xoffs + xform.xscale); - cliprect.y1 = render_round_nearest(xform.yoffs + xform.yscale); - cliprect &= m_bounds; + render_bounds cliprect = prim->bounds & m_bounds; // determine UV coordinates and apply clipping prim->texcoords = oriented_texcoords[xform.orientation]; |