mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
some SCREEN_UPDATE_* cleanups (nw)
This commit is contained in:
parent
a9b35916ac
commit
77fd68733e
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -5571,7 +5571,6 @@ src/mame/video/k054338.h svneol=native#text/plain
|
||||
src/mame/video/k055555.c svneol=native#text/plain
|
||||
src/mame/video/k055555.h svneol=native#text/plain
|
||||
src/mame/video/kan_panb.c svneol=native#text/plain
|
||||
src/mame/video/kan_panb.h svneol=native#text/plain
|
||||
src/mame/video/kan_pand.c svneol=native#text/plain
|
||||
src/mame/video/kan_pand.h svneol=native#text/plain
|
||||
src/mame/video/kaneko16.c svneol=native#text/plain
|
||||
|
@ -355,10 +355,12 @@ typedef device_type_iterator<&device_creator<screen_device>, screen_device> scre
|
||||
// SCREEN DEVICE CONFIGURATION MACROS
|
||||
//**************************************************************************
|
||||
|
||||
// legacy
|
||||
#define SCREEN_UPDATE_NAME(name) screen_update_##name
|
||||
#define SCREEN_UPDATE_IND16(name) UINT32 SCREEN_UPDATE_NAME(name)(device_t *, screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
#define SCREEN_UPDATE_RGB32(name) UINT32 SCREEN_UPDATE_NAME(name)(device_t *, screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
|
||||
// legacy
|
||||
#define SCREEN_VBLANK_NAME(name) screen_vblank_##name
|
||||
#define SCREEN_VBLANK(name) void SCREEN_VBLANK_NAME(name)(device_t *, screen_device &screen, bool vblank_on)
|
||||
|
||||
|
@ -4030,7 +4030,7 @@ UINT32 ddenlovr_state::screen_update_htengoku(screen_device &screen, bitmap_ind1
|
||||
int layer, x, y;
|
||||
|
||||
// render the layers, one by one, "dynax.c" style. Then convert the pixmaps to "ddenlovr.c"
|
||||
// format and let SCREEN_UPDATE_IND16(ddenlovr) do the final compositing (priorities + palettes)
|
||||
// format and let screen_update_ddenlovr() do the final compositing (priorities + palettes)
|
||||
for (layer = 0; layer < 4; layer++)
|
||||
{
|
||||
bitmap.fill(0, cliprect);
|
||||
|
@ -1001,7 +1001,7 @@ VIDEO_START_MEMBER(raiden2_state,raiden2)
|
||||
text_layer->set_transparent_pen(15);
|
||||
}
|
||||
|
||||
/* SCREEN_UPDATE_IND16 (move to video file) */
|
||||
/* screen_update_raiden2 (move to video file) */
|
||||
|
||||
UINT32 raiden2_state::screen_update_raiden2(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
|
@ -70,7 +70,6 @@ out of the sprite list at that point.. (verify on real hw)
|
||||
#include "sound/2151intf.h"
|
||||
#include "sound/3812intf.h"
|
||||
#include "sound/okim6295.h"
|
||||
#include "video/kan_panb.h" // for bootlegs / non-original hw
|
||||
#include "cpu/mcs51/mcs51.h" // for semicom mcu
|
||||
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
/* bootlegs of Kaneko Pandora chip, with modifications */
|
||||
|
||||
#include "emu.h"
|
||||
#include "kan_panb.h"
|
||||
#include "includes/snowbros.h"
|
||||
|
||||
UINT32 snowbros_state::screen_update_honeydol(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
|
@ -1,4 +0,0 @@
|
||||
SCREEN_UPDATE_IND16( honeydol );
|
||||
SCREEN_UPDATE_IND16( twinadv );
|
||||
SCREEN_UPDATE_IND16( wintbob );
|
||||
SCREEN_UPDATE_IND16( snowbro3 );
|
@ -228,7 +228,7 @@ UINT32 namcos21_state::screen_update_namcos21(screen_device &screen, bitmap_ind1
|
||||
}
|
||||
} /* winrun bitmap layer */
|
||||
return 0;
|
||||
} /* SCREEN_UPDATE_IND16( namcos21 ) */
|
||||
}
|
||||
|
||||
/*********************************************************************************************/
|
||||
|
||||
|
@ -181,7 +181,7 @@ WRITE16_MEMBER(toaplan2_state::toaplan2_txvideoram16_w)
|
||||
WRITE16_MEMBER(toaplan2_state::toaplan2_txvideoram16_offs_w)
|
||||
{
|
||||
// FIXME: implement line select and per-line flipping for all games
|
||||
// see SCREEN_UPDATE_IND16( batrider )
|
||||
// see toaplan2_state::screen_update_batrider()
|
||||
|
||||
UINT16 oldword = m_txvideoram16_offs[offset];
|
||||
|
||||
|
@ -132,7 +132,7 @@ WRITE8_MEMBER(vectrex_state::vectrex_via_w)
|
||||
TIMER_CALLBACK_MEMBER(vectrex_state::vectrex_refresh)
|
||||
{
|
||||
/* Refresh only marks the range of vectors which will be drawn
|
||||
* during the next SCREEN_UPDATE_RGB32. */
|
||||
* during the next screen_update. */
|
||||
m_display_start = m_display_end;
|
||||
m_display_end = m_point_index;
|
||||
}
|
||||
|
@ -488,10 +488,6 @@ TIMER_DEVICE_CALLBACK_MEMBER(ace_state::clear_irq)
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// SCREEN_UPDATE_IND16( ace )
|
||||
//-------------------------------------------------
|
||||
|
||||
UINT32 ace_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
UINT8 y,ra,chr,gfx;
|
||||
|
@ -84,7 +84,7 @@
|
||||
#define C15M (C7M*2)
|
||||
#define C32M (C15M*2)
|
||||
|
||||
// do this here - SCREEN_UPDATE_IND16 is called each scanline when stepping in the
|
||||
// do this here - screen_update is called each scanline when stepping in the
|
||||
// debugger, which means you can't escape the VIA2 IRQ handler
|
||||
//
|
||||
// RBV/MDU bits in IER/IFR:
|
||||
|
@ -688,10 +688,6 @@ void px8_state::palette_init()
|
||||
palette_set_color_rgb(machine(), 1, 0x31, 0x39, 0x10);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------
|
||||
SCREEN_UPDATE_IND16( px8 )
|
||||
-------------------------------------------------*/
|
||||
|
||||
UINT32 px8_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
return 0;
|
||||
|
@ -222,10 +222,6 @@ void tdv2324_state::video_start()
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// SCREEN_UPDATE_IND16( tdv2324 )
|
||||
//-------------------------------------------------
|
||||
|
||||
UINT32 tdv2324_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
return 0;
|
||||
|
@ -414,7 +414,7 @@ protected:
|
||||
INT16 m_thom_border_l[THOM_TOTAL_HEIGHT+1];
|
||||
INT16 m_thom_border_r[THOM_TOTAL_HEIGHT+1];
|
||||
/* active area, updated one scan-line at a time every 64us,
|
||||
then blitted in SCREEN_UPDATE_IND16
|
||||
then blitted in screen_update
|
||||
*/
|
||||
UINT16 m_thom_vbody[640*200];
|
||||
UINT8 m_thom_vmode; /* current vide mode */
|
||||
|
@ -1077,10 +1077,6 @@ void abc1600_state::video_start()
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// SCREEN_UPDATE_IND16( abc1600 )
|
||||
//-------------------------------------------------
|
||||
|
||||
UINT32 abc1600_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
// HACK expand visible area to workaround MC6845
|
||||
|
@ -184,10 +184,6 @@ void abc80_state::video_start()
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// SCREEN_UPDATE_IND16( abc80 )
|
||||
//-------------------------------------------------
|
||||
|
||||
UINT32 abc80_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
update_screen(bitmap, cliprect);
|
||||
|
@ -2097,7 +2097,7 @@ static void register_vblank_callback(device_t *device)
|
||||
FUNC(vblank_state_changed),device) );
|
||||
}
|
||||
|
||||
SCREEN_UPDATE_RGB32( apollo_screen )
|
||||
static SCREEN_UPDATE_RGB32( apollo_screen )
|
||||
{
|
||||
// FIXME: omit using APOLLO_SCREEN_TAG
|
||||
device_t *apollo_screen = screen.machine().device(APOLLO_SCREEN_TAG);
|
||||
|
@ -178,10 +178,6 @@ TIMER_DEVICE_CALLBACK_MEMBER(cgc7900_state::blink_tick)
|
||||
m_blink = !m_blink;
|
||||
}
|
||||
|
||||
/*-------------------------------------------------
|
||||
SCREEN_UPDATE_IND16( cgc7900 )
|
||||
-------------------------------------------------*/
|
||||
|
||||
UINT32 cgc7900_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
update_clut();
|
||||
|
@ -7,7 +7,7 @@
|
||||
Krzysztof Strzecha
|
||||
|
||||
All video modes are emulated but not fully tested yet.
|
||||
SCREEN_UPDATE_IND16 function needs strong cleanup and optimalisation.
|
||||
dai_state::screen_update_dai() function needs strong cleanup and optimalisation.
|
||||
|
||||
|
||||
***************************************************************************/
|
||||
|
@ -81,10 +81,6 @@ static UPD7220_INTERFACE( hgdc_intf )
|
||||
};
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// SCREEN_UPDATE_IND16( mm1 )
|
||||
//-------------------------------------------------
|
||||
|
||||
UINT32 mm1_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
/* text */
|
||||
|
@ -6,8 +6,6 @@
|
||||
#ifndef __VIDHRDW_NEWPORT__
|
||||
#define __VIDHRDW_NEWPORT__
|
||||
|
||||
extern SCREEN_UPDATE_RGB32( newport );
|
||||
|
||||
struct VC2_t
|
||||
{
|
||||
UINT16 nRegister[0x21];
|
||||
|
@ -548,10 +548,6 @@ void pc1512_state::video_start()
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// SCREEN_UPDATE_RGB32( pc1512 )
|
||||
//-------------------------------------------------
|
||||
|
||||
UINT32 pc1512_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
if (m_vdu_mode & MODE_ENABLE_VIDEO)
|
||||
|
@ -62,7 +62,7 @@ void tx0_state::tx0_plot(int x, int y)
|
||||
|
||||
|
||||
/*
|
||||
SCREEN_UPDATE_IND16( tx0 ): effectively redraw the screen
|
||||
screen_update_tx0: effectively redraw the screen
|
||||
*/
|
||||
UINT32 tx0_state::screen_update_tx0(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user