summaryrefslogtreecommitdiffstats
path: root/src/mame/video
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video')
-rw-r--r--src/mame/video/ccastles.c1
-rw-r--r--src/mame/video/cchasm.c1
-rw-r--r--src/mame/video/centiped.c1
-rw-r--r--src/mame/video/cloud9.c1
-rw-r--r--src/mame/video/cps1.c2
-rw-r--r--src/mame/video/dday.c1
-rw-r--r--src/mame/video/dkong.c2
-rw-r--r--src/mame/video/fromanc2.c1
-rw-r--r--src/mame/video/fromance.c1
-rw-r--r--src/mame/video/galaga.c1
-rw-r--r--src/mame/video/galaxold.c1
-rw-r--r--src/mame/video/konicdev.c4
-rw-r--r--src/mame/video/lastduel.c1
-rw-r--r--src/mame/video/lockon.c1
-rw-r--r--src/mame/video/madalien.c2
-rw-r--r--src/mame/video/qix.c2
-rw-r--r--src/mame/video/redclash.c2
-rw-r--r--src/mame/video/spbactn.c2
-rw-r--r--src/mame/video/stvvdp1.c8
-rw-r--r--src/mame/video/stvvdp2.c36
-rw-r--r--src/mame/video/taitoic.c4
-rw-r--r--src/mame/video/tecmo_spr.c4
-rw-r--r--src/mame/video/tecmo_spr.h1
-rw-r--r--src/mame/video/twincobr.c2
24 files changed, 31 insertions, 51 deletions
diff --git a/src/mame/video/ccastles.c b/src/mame/video/ccastles.c
index 860067abe80..c6c7b49bd12 100644
--- a/src/mame/video/ccastles.c
+++ b/src/mame/video/ccastles.c
@@ -163,7 +163,6 @@ inline void ccastles_state::ccastles_write_vram( UINT16 addr, UINT8 data, UINT8
inline void ccastles_state::bitmode_autoinc( )
{
-
/* auto increment in the x-direction if it's enabled */
if (!m_video_control[0]) /* /AX */
{
diff --git a/src/mame/video/cchasm.c b/src/mame/video/cchasm.c
index e69992dba34..d97df1fa06a 100644
--- a/src/mame/video/cchasm.c
+++ b/src/mame/video/cchasm.c
@@ -26,7 +26,6 @@ TIMER_CALLBACK_MEMBER(cchasm_state::cchasm_refresh_end)
void cchasm_state::cchasm_refresh ()
{
-
int pc = 0;
int done = 0;
int opcode, data;
diff --git a/src/mame/video/centiped.c b/src/mame/video/centiped.c
index b964bb15b28..76ba7849369 100644
--- a/src/mame/video/centiped.c
+++ b/src/mame/video/centiped.c
@@ -80,7 +80,6 @@ void centiped_state::init_penmask()
void centiped_state::init_common()
{
-
save_item(NAME(m_flipscreen));
save_item(NAME(m_gfx_bank));
save_item(NAME(m_bullsdrt_sprites_bank));
diff --git a/src/mame/video/cloud9.c b/src/mame/video/cloud9.c
index 473220449e3..9bfa978b817 100644
--- a/src/mame/video/cloud9.c
+++ b/src/mame/video/cloud9.c
@@ -156,7 +156,6 @@ inline void cloud9_state::cloud9_write_vram( UINT16 addr, UINT8 data, UINT8 bitm
inline void cloud9_state::bitmode_autoinc( )
{
-
/* auto increment in the x-direction if it's enabled */
if (!m_video_control[0]) /* /AX */
m_bitmode_addr[0]++;
diff --git a/src/mame/video/cps1.c b/src/mame/video/cps1.c
index 3a4f294d75a..a7624c4e113 100644
--- a/src/mame/video/cps1.c
+++ b/src/mame/video/cps1.c
@@ -2276,7 +2276,6 @@ void cps_state::cps1_find_last_sprite() /* Find the offset of last sprite */
void cps_state::cps1_render_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect )
{
-
#define DRAWSPRITE(CODE,COLOR,FLIPX,FLIPY,SX,SY) \
{ \
if (flip_screen()) \
@@ -2510,7 +2509,6 @@ void cps_state::cps2_find_last_sprite() /* Find the offset of last sprite */
void cps_state::cps2_render_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int *primasks )
{
-
#define DRAWSPRITE(CODE,COLOR,FLIPX,FLIPY,SX,SY) \
{ \
if (flip_screen()) \
diff --git a/src/mame/video/dday.c b/src/mame/video/dday.c
index dc6b9a83be4..c18596db1b3 100644
--- a/src/mame/video/dday.c
+++ b/src/mame/video/dday.c
@@ -33,7 +33,6 @@ TIMER_CALLBACK_MEMBER(dday_state::countdown_timer_callback)
void dday_state::start_countdown_timer()
{
-
m_timer_value = 0;
machine().scheduler().timer_pulse(attotime::from_seconds(1), timer_expired_delegate(FUNC(dday_state::countdown_timer_callback),this));
diff --git a/src/mame/video/dkong.c b/src/mame/video/dkong.c
index f35e8adade5..86f0a2bf5b5 100644
--- a/src/mame/video/dkong.c
+++ b/src/mame/video/dkong.c
@@ -669,7 +669,6 @@ void dkong_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect,
inline double dkong_state::CD4049(double x)
{
-
if (x>0)
return exp(-m_cd4049_a * pow(x,m_cd4049_b));
else
@@ -690,7 +689,6 @@ inline double dkong_state::CD4049(double x)
void dkong_state::radarscp_step(int line_cnt)
{
-
/* Condensator is illegible in schematics for TRS2 board.
* TRS1 board states 3.3u.
*/
diff --git a/src/mame/video/fromanc2.c b/src/mame/video/fromanc2.c
index f0d1128d7f7..75354c27e03 100644
--- a/src/mame/video/fromanc2.c
+++ b/src/mame/video/fromanc2.c
@@ -288,7 +288,6 @@ WRITE16_MEMBER(fromanc2_state::fromancr_gfxreg_1_w)
void fromanc2_state::fromancr_gfxbank_w( int data )
{
-
m_gfxbank[0][0] = (data & 0x0010) >> 4; // BG (1P)
m_gfxbank[0][1] = (data & 0xf000) >> 12; // FG (1P)
m_gfxbank[1][0] = (data & 0x0008) >> 3; // BG (2P)
diff --git a/src/mame/video/fromance.c b/src/mame/video/fromance.c
index 54865729da9..44e62c22b97 100644
--- a/src/mame/video/fromance.c
+++ b/src/mame/video/fromance.c
@@ -55,7 +55,6 @@ TILE_GET_INFO_MEMBER(fromance_state::get_nekkyoku_fg_tile_info){ get_nekkyoku_ti
void fromance_state::init_common( )
{
-
/* allocate local videoram */
m_local_videoram[0] = auto_alloc_array(machine(), UINT8, 0x1000 * 3);
m_local_videoram[1] = auto_alloc_array(machine(), UINT8, 0x1000 * 3);
diff --git a/src/mame/video/galaga.c b/src/mame/video/galaga.c
index fce68cdc943..e7d12d8a78e 100644
--- a/src/mame/video/galaga.c
+++ b/src/mame/video/galaga.c
@@ -472,7 +472,6 @@ WRITE8_MEMBER(galaga_state::gatsbee_bank_w)
void galaga_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect )
{
-
UINT8 *spriteram = m_galaga_ram1 + 0x380;
UINT8 *spriteram_2 = m_galaga_ram2 + 0x380;
UINT8 *spriteram_3 = m_galaga_ram3 + 0x380;
diff --git a/src/mame/video/galaxold.c b/src/mame/video/galaxold.c
index 4528ddc1692..e6f831a6f05 100644
--- a/src/mame/video/galaxold.c
+++ b/src/mame/video/galaxold.c
@@ -1305,7 +1305,6 @@ void galaxold_state::dambustr_draw_background(bitmap_ind16 &bitmap, const rectan
void galaxold_state::dambustr_draw_upper_background(bitmap_ind16 &bitmap, const rectangle &cliprect)
{
-
if (flip_screen_x())
{
rectangle clip(254 - m_dambustr_bg_split_line, m_dambustr_bg_split_line, 0, 255);
diff --git a/src/mame/video/konicdev.c b/src/mame/video/konicdev.c
index 24f1ab937cc..3c59c5f9990 100644
--- a/src/mame/video/konicdev.c
+++ b/src/mame/video/konicdev.c
@@ -10327,7 +10327,7 @@ void k001604_draw_back_layer( device_t *device, bitmap_rgb32 &bitmap, const rect
window_x = ((k001604->reg[0x1b] >> 1) & 3) * 512;
else
window_x = ((k001604->reg[0x1b] >> 1) & 1) * 512;
-
+
window_y = 0;
switch (layer_size)
@@ -10339,7 +10339,7 @@ void k001604_draw_back_layer( device_t *device, bitmap_rgb32 &bitmap, const rect
}
window_ymask = pixmap.height() - 1;
-
+
// loop over rows
while (sy <= ey)
diff --git a/src/mame/video/lastduel.c b/src/mame/video/lastduel.c
index 4ccde683063..de2cb93285c 100644
--- a/src/mame/video/lastduel.c
+++ b/src/mame/video/lastduel.c
@@ -199,7 +199,6 @@ WRITE16_MEMBER(lastduel_state::lastduel_palette_word_w)
void lastduel_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect, int pri )
{
-
UINT16 *buffered_spriteram16 = m_spriteram->buffer();
int offs;
diff --git a/src/mame/video/lockon.c b/src/mame/video/lockon.c
index 4a9613c8a12..07ef300ba24 100644
--- a/src/mame/video/lockon.c
+++ b/src/mame/video/lockon.c
@@ -300,7 +300,6 @@ TIMER_CALLBACK_MEMBER(lockon_state::bufend_callback)
void lockon_state::ground_draw( )
{
-
/* ROM pointers */
const UINT8 *const gfx_rom = memregion("gfx4")->base();
const UINT8 *const lut_rom = gfx_rom + 0x30000 + ((m_ground_ctrl >> 2) & 0x3 ? 0x10000 : 0);
diff --git a/src/mame/video/madalien.c b/src/mame/video/madalien.c
index 6efa6face08..f61d58a23ec 100644
--- a/src/mame/video/madalien.c
+++ b/src/mame/video/madalien.c
@@ -380,7 +380,7 @@ GFXDECODE_END
static MC6845_INTERFACE( mc6845_intf )
{
"screen", /* screen we are acting on */
- false, /* show border area */
+ false, /* show border area */
8, /* number of pixels per video memory address */
NULL, /* before pixel update callback */
NULL, /* row update callback */
diff --git a/src/mame/video/qix.c b/src/mame/video/qix.c
index 2cd3db62a27..70a7ba9dce3 100644
--- a/src/mame/video/qix.c
+++ b/src/mame/video/qix.c
@@ -385,7 +385,7 @@ ADDRESS_MAP_END
static MC6845_INTERFACE( mc6845_intf )
{
"screen", /* screen we are acting on */
- false, /* show border area */
+ false, /* show border area */
8, /* number of pixels per video memory address */
begin_update, /* before pixel update callback */
update_row, /* row update callback */
diff --git a/src/mame/video/redclash.c b/src/mame/video/redclash.c
index c5d327df41f..0d8ed261796 100644
--- a/src/mame/video/redclash.c
+++ b/src/mame/video/redclash.c
@@ -286,7 +286,7 @@ void ladybug_state::redclash_draw_bullets( bitmap_ind16 &bitmap, const rectangle
/* This line can reset the LFSR to zero and disables the star generator */
void ladybug_state::redclash_set_stars_enable(UINT8 on)
-{
+{
if ((m_stars_enable == 0) && (on == 1))
{
m_stars_offset = 0;
diff --git a/src/mame/video/spbactn.c b/src/mame/video/spbactn.c
index c2213592bda..2cec9383b79 100644
--- a/src/mame/video/spbactn.c
+++ b/src/mame/video/spbactn.c
@@ -59,7 +59,7 @@ TILE_GET_INFO_MEMBER(spbactn_state::get_fg_tile_info)
int tileno = m_fgvideoram[tile_index+0x2000];
int color = ((attr & 0x00f0)>>4);
-
+
/* blending */
if (attr & 0x0008)
color += 0x00f0;
diff --git a/src/mame/video/stvvdp1.c b/src/mame/video/stvvdp1.c
index 15100909b9a..98365f8a1e8 100644
--- a/src/mame/video/stvvdp1.c
+++ b/src/mame/video/stvvdp1.c
@@ -239,7 +239,7 @@ void saturn_state::stv_vdp1_change_framebuffers( void )
void saturn_state::stv_set_framebuffer_config( void )
{
if ( m_vdp1.framebuffer_mode == STV_VDP1_TVM &&
- m_vdp1.framebuffer_double_interlace == STV_VDP1_DIE ) return;
+ m_vdp1.framebuffer_double_interlace == STV_VDP1_DIE ) return;
if ( VDP1_LOG ) logerror( "Setting framebuffer config\n" );
m_vdp1.framebuffer_mode = STV_VDP1_TVM;
@@ -1908,7 +1908,7 @@ void saturn_state::stv_vdp1_process_list( void )
break;
case 0x0005:
-// case 0x0007: // mirror? Baroque uses it, crashes for whatever reason
+// case 0x0007: // mirror? Baroque uses it, crashes for whatever reason
if (VDP1_LOG) logerror ("Sprite List Polyline\n");
stv2_current_sprite.ispoly = 1;
stv_vdp1_draw_poly_line(*cliprect);
@@ -1921,7 +1921,7 @@ void saturn_state::stv_vdp1_process_list( void )
break;
case 0x0008:
-// case 0x000b: // mirror? Bug 2
+// case 0x000b: // mirror? Bug 2
if (VDP1_LOG) logerror ("Sprite List Set Command for User Clipping (%d,%d),(%d,%d)\n", stv2_current_sprite.CMDXA, stv2_current_sprite.CMDYA, stv2_current_sprite.CMDXC, stv2_current_sprite.CMDYC);
m_vdp1.user_cliprect.set(stv2_current_sprite.CMDXA, stv2_current_sprite.CMDXC, stv2_current_sprite.CMDYA, stv2_current_sprite.CMDYC);
break;
@@ -2021,7 +2021,7 @@ void saturn_state::video_update_vdp1( void )
/* TODO: Slam n Jam 96 & Cross Romance doesn't like this, investigate. */
framebuffer_changed = 1;
}
- // framebuffer_changed = 1;
+ // framebuffer_changed = 1;
break;
}
m_vdp1.fbcr_accessed = 0;
diff --git a/src/mame/video/stvvdp2.c b/src/mame/video/stvvdp2.c
index 4e27cbac89f..e22ea9cd652 100644
--- a/src/mame/video/stvvdp2.c
+++ b/src/mame/video/stvvdp2.c
@@ -2604,9 +2604,9 @@ void saturn_state::stv_vdp2_drawgfxzoom_rgb555(
myclip = clip;
myclip &= dest_bmp.cliprect();
-// if( gfx )
+// if( gfx )
{
-// const UINT8 *source_base = gfx->get_data(code % gfx->elements());
+// const UINT8 *source_base = gfx->get_data(code % gfx->elements());
//int sprite_screen_height = (scaley*gfx->height()+0x8000)>>16;
//int sprite_screen_width = (scalex*gfx->width()+0x8000)>>16;
@@ -3264,27 +3264,27 @@ void saturn_state::stv_vdp2_draw_basic_bitmap(bitmap_rgb32 &bitmap, const rectan
/* intentional fall-through*/
popmessage("%d %s %s %s %s",stv2_current_tilemap.colour_depth,
- stv2_current_tilemap.transparency == STV_TRANSPARENCY_NONE ? "no trans" : "trans",
- stv2_current_tilemap.window_control & 6 ? "window" : "no window",
- stv2_current_tilemap.colour_calculation_enabled ? "cc" : "no cc",
- (stv2_current_tilemap.incx == 0x10000 && stv2_current_tilemap.incy == 0x10000) ? "no zoom" : "zoom");
+ stv2_current_tilemap.transparency == STV_TRANSPARENCY_NONE ? "no trans" : "trans",
+ stv2_current_tilemap.window_control & 6 ? "window" : "no window",
+ stv2_current_tilemap.colour_calculation_enabled ? "cc" : "no cc",
+ (stv2_current_tilemap.incx == 0x10000 && stv2_current_tilemap.incy == 0x10000) ? "no zoom" : "zoom");
}
else
{
switch(stv2_current_tilemap.colour_depth)
{
- // case 0: draw_4bpp_bitmap(bitmap,cliprect); return;
+ // case 0: draw_4bpp_bitmap(bitmap,cliprect); return;
case 1: draw_8bpp_bitmap(bitmap,cliprect); return;
case 3: draw_rgb15_bitmap(bitmap,cliprect); return;
- // case 4: draw_rgb32_bitmap(bitmap,cliprect); return;
+ // case 4: draw_rgb32_bitmap(bitmap,cliprect); return;
}
/* intentional fall-through*/
popmessage("%d %s %s %s %s",stv2_current_tilemap.colour_depth,
- stv2_current_tilemap.transparency == STV_TRANSPARENCY_NONE ? "no trans" : "trans",
- stv2_current_tilemap.window_control & 6 ? "window" : "no window",
- stv2_current_tilemap.colour_calculation_enabled ? "cc" : "no cc",
- (stv2_current_tilemap.incx == 0x10000 && stv2_current_tilemap.incy == 0x10000) ? "no zoom" : "zoom");
+ stv2_current_tilemap.transparency == STV_TRANSPARENCY_NONE ? "no trans" : "trans",
+ stv2_current_tilemap.window_control & 6 ? "window" : "no window",
+ stv2_current_tilemap.colour_calculation_enabled ? "cc" : "no cc",
+ (stv2_current_tilemap.incx == 0x10000 && stv2_current_tilemap.incy == 0x10000) ? "no zoom" : "zoom");
}
/* size for n0 / n1 */
@@ -4319,11 +4319,11 @@ void saturn_state::stv_vdp2_check_tilemap_with_linescroll(bitmap_rgb32 &bitmap,
// prepare linescroll flags
linescroll_enable = stv2_current_tilemap.linescroll_enable;
-// stv2_current_tilemap.linescroll_enable = 0;
+// stv2_current_tilemap.linescroll_enable = 0;
vertical_linescroll_enable = stv2_current_tilemap.vertical_linescroll_enable;
-// stv2_current_tilemap.vertical_linescroll_enable = 0;
+// stv2_current_tilemap.vertical_linescroll_enable = 0;
linezoom_enable = stv2_current_tilemap.linezoom_enable;
-// stv2_current_tilemap.linezoom_enable = 0;
+// stv2_current_tilemap.linezoom_enable = 0;
// prepare working clipping rectangle
memcpy( &mycliprect, &cliprect, sizeof(rectangle) );
@@ -4542,8 +4542,8 @@ void saturn_state::stv_vdp2_check_tilemap(bitmap_rgb32 &bitmap, const rectangle
if(stv2_current_tilemap.colour_depth == 2 && !stv2_current_tilemap.bitmap_enable)
popmessage("2048 color mode used on a non-bitmap plane");
-// if(STV_VDP2_SCXDN0 || STV_VDP2_SCXDN1 || STV_VDP2_SCYDN0 || STV_VDP2_SCYDN1)
-// popmessage("Fractional part scrolling write, contact MAMEdev");
+// if(STV_VDP2_SCXDN0 || STV_VDP2_SCXDN1 || STV_VDP2_SCYDN0 || STV_VDP2_SCYDN1)
+// popmessage("Fractional part scrolling write, contact MAMEdev");
/* Pukunpa */
//if(STV_VDP2_SPWINEN)
@@ -7023,5 +7023,3 @@ UINT32 saturn_state::screen_update_stv_vdp2(screen_device &screen, bitmap_rgb32
#endif
return 0;
}
-
-
diff --git a/src/mame/video/taitoic.c b/src/mame/video/taitoic.c
index 9b4edef9f02..78028da3ac5 100644
--- a/src/mame/video/taitoic.c
+++ b/src/mame/video/taitoic.c
@@ -1883,7 +1883,7 @@ READ_LINE_DEVICE_HANDLER( tc0080vco_flipscreen_r )
void tc0080vco_device::tc0080vco_postload()
{
tc0080vco_state *tc0080vco = tc0080vco_get_safe_token(this);
-
+
tc0080vco->flipscreen = tc0080vco->scroll_ram[0] & 0x0c00;
tc0080vco->tilemap[0]->set_flip(tc0080vco->flipscreen ? TILEMAP_FLIPX | TILEMAP_FLIPY : 0);
@@ -3716,7 +3716,7 @@ READ8_DEVICE_HANDLER( tc0480scp_pri_reg_r )
void tc0480scp_device::tc0480scp_postload()
{
tc0480scp_state *tc0480scp = tc0480scp_get_safe_token(this);
-
+
int reg;
int flip = tc0480scp->ctrl[0xf] & 0x40;
diff --git a/src/mame/video/tecmo_spr.c b/src/mame/video/tecmo_spr.c
index c9580ee36f7..25e53edd7d0 100644
--- a/src/mame/video/tecmo_spr.c
+++ b/src/mame/video/tecmo_spr.c
@@ -79,7 +79,7 @@ int spbactn_draw_sprites(running_machine &machine, bitmap_ind16 &bitmap, const r
attr = spriteram[offs];
int pri = (spriteram[offs] & 0x0030);
-// int pri = (spriteram[offs+2] & 0x0030);
+// int pri = (spriteram[offs+2] & 0x0030);
if ((attr & 0x0004) &&
@@ -542,5 +542,3 @@ void raiga_draw_sprites( running_machine &machine, bitmap_ind16 &bitmap_bg, bitm
source -= 8;
}
}
-
-
diff --git a/src/mame/video/tecmo_spr.h b/src/mame/video/tecmo_spr.h
index 693e933e565..8af6da82a1d 100644
--- a/src/mame/video/tecmo_spr.h
+++ b/src/mame/video/tecmo_spr.h
@@ -5,4 +5,3 @@ void tecmo16_draw_sprites(running_machine &machine, bitmap_ind16 &bitmap_bg, bit
void gaiden_draw_sprites( running_machine &machine, bitmap_ind16 &bitmap_bg, bitmap_ind16 &bitmap_fg, bitmap_ind16 &bitmap_sp, const rectangle &cliprect, UINT16* spriteram, int sprite_sizey, int spr_offset_y, int flipscreen );
void raiga_draw_sprites( running_machine &machine, bitmap_ind16 &bitmap_bg, bitmap_ind16 &bitmap_fg, bitmap_ind16 &bitmap_sp, const rectangle &cliprect, UINT16* spriteram, int sprite_sizey, int spr_offset_y, int flipscreen );
int spbactn_draw_sprites(running_machine &machine, bitmap_ind16 &bitmap, const rectangle &cliprect, int priority, bool alt_sprites, UINT16* spriteram);
-
diff --git a/src/mame/video/twincobr.c b/src/mame/video/twincobr.c
index e20c36db9ae..6a43d1d4644 100644
--- a/src/mame/video/twincobr.c
+++ b/src/mame/video/twincobr.c
@@ -21,7 +21,7 @@
MC6845_INTERFACE( twincobr_mc6845_intf )
{
"screen", /* screen we are acting on */
- false, /* show border area */
+ false, /* show border area */
2, /* number of pixels per video memory address */ /* Horizontal Display programmed to 160 characters */
NULL, /* before pixel update callback */
NULL, /* row update callback */