summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video/vector.c
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-10-28 08:06:12 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-10-28 08:06:12 +0100
commit47f56372ee5f2d5eec2793608a5426296857b26a (patch)
tree5cb578501b3dfc70b9af27214d72dd0d881d3bd8 /src/emu/video/vector.c
parentf55f3d9624ef703151c81d9d9dae02eb13313076 (diff)
Cleanup and version bumpmame0167
Diffstat (limited to 'src/emu/video/vector.c')
-rw-r--r--src/emu/video/vector.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/video/vector.c b/src/emu/video/vector.c
index f0146234afe..720e24bd049 100644
--- a/src/emu/video/vector.c
+++ b/src/emu/video/vector.c
@@ -227,12 +227,12 @@ void vector_device::add_point(int x, int y, rgb_t color, int intensity)
if (m_flicker && (intensity > 0))
{
float random = (float)(machine().rand() & 255) / 255.0f; // random value between 0.0 and 1.0
-
+
intensity -= (int)(intensity * random * m_flicker);
if (intensity < 0)
{
intensity = 0;
- }
+ }
if (intensity > 255)
{
intensity = 255;
@@ -344,7 +344,7 @@ UINT32 vector_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap,
coords.y1 = ((float)curpoint->y - yoffs) * yscale;
// extend zero-length vector line (vector point) by quarter beam_width on both sides
- if (fabs(coords.x0 - coords.x1) < FLT_EPSILON &&
+ if (fabs(coords.x0 - coords.x1) < FLT_EPSILON &&
fabs(coords.y0 - coords.y1) < FLT_EPSILON)
{
coords.x0 += xratio * beam_width * 0.25f;