summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-07-23 11:30:30 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-07-23 11:30:30 +0200
commit52f5d4d0c10bd7984dcb77b834d1b9368f112fb1 (patch)
tree5316d3d1175057a521804ceafb47de84fd6bc761
parentd6179859ad5809ce484b3695b508c075d9dca57b (diff)
This part was not meant to be commited (nw)
-rw-r--r--src/emu/render.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/emu/render.cpp b/src/emu/render.cpp
index 0496c3ed191..a335489ce11 100644
--- a/src/emu/render.cpp
+++ b/src/emu/render.cpp
@@ -2357,7 +2357,7 @@ bool render_target::remove_clear_extent(const render_bounds &bounds)
INT32 *linelast;
// first entry of each line should always be negative
- if (!(ext[0] < 0.0f)) goto abort;
+ assert(ext[0] < 0.0f);
y0 = y1;
y1 = y0 - ext[0];
@@ -2489,11 +2489,7 @@ void render_target::add_clear_extents(render_primitive_list &list)
INT32 x0, x1 = 0;
// first entry should always be negative
- if (!(ext[0] < 0))
- {
- list.m_primlist.prepend_list(clearlist);
- return;
- }
+ assert(ext[0] < 0);
y0 = y1;
y1 = y0 - ext[0];
@@ -2750,7 +2746,6 @@ float render_manager::ui_aspect(render_container *rc)
if (aspect > 1.5f)
aspect = 1.5f;
- if (isinf(aspect)) aspect = 1.0f;
return aspect;
}