summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Fabio Priuli <etabeta78@users.noreply.github.com>2010-03-09 17:00:35 +0000
committer Fabio Priuli <etabeta78@users.noreply.github.com>2010-03-09 17:00:35 +0000
commit9e7cfa9bfeeac649d16c43e80c6d9e834342c466 (patch)
tree8f3c1e3b2aa604b084a67af5746222ab2e1f801f
parent8661e91e58569a853c6e66b643395f553e00f187 (diff)
reverting most of rev.8551, to avoid breakage in MESS. also, please do not mentions rev.8551 in the whatsnew.
-rw-r--r--src/mame/video/snes.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mame/video/snes.c b/src/mame/video/snes.c
index de38e1333c2..386aea518b8 100644
--- a/src/mame/video/snes.c
+++ b/src/mame/video/snes.c
@@ -1133,6 +1133,9 @@ static void snes_update_objects( UINT8 priority_tbl, UINT16 curline )
charaddr = snes_ppu.layer[SNES_OAM].charmap << 13;
+ snes_update_obsel();
+ snes_oam_list_build();
+
for (i = 128; i > 0; i--)
{
tile = oam_list[i].tile;
@@ -1337,8 +1340,6 @@ static void snes_update_mode_7( UINT16 curline )
static void snes_draw_screens( UINT16 curline )
{
- snes_oam_list_build();
-
switch (snes_ppu.mode)
{
case 0: snes_update_mode_0(curline); break; /* Mode 0 */
@@ -1581,13 +1582,10 @@ VIDEO_UPDATE( snes )
{
int y;
- snes_update_obsel();
-
/*NTSC SNES draw range is 1-225. */
for (y = cliprect->min_y; y <= cliprect->max_y; y++)
{
snes_refresh_scanline(screen->machine, bitmap, y + 1);
- snes_update_obsel();
}
return 0;
}