summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Michaël Banaan Ananas <happppp@users.noreply.github.com>2011-12-14 20:55:10 +0000
committer Michaël Banaan Ananas <happppp@users.noreply.github.com>2011-12-14 20:55:10 +0000
commit926f8ddfed7522dc8988fa4c6adfbb91611fc88e (patch)
tree1b7f937f43e02fff230000f9d854a818aa00f626
parentd31830b99421b6af1797f3a5e3b260ed21a7294e (diff)
fix mode1 border size
-rw-r--r--src/emu/video/tms9928a.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/emu/video/tms9928a.c b/src/emu/video/tms9928a.c
index c9b289eac91..31b71885074 100644
--- a/src/emu/video/tms9928a.c
+++ b/src/emu/video/tms9928a.c
@@ -329,11 +329,11 @@ void tms9928a_device::device_timer(emu_timer &timer, device_timer_id id, int par
UINT16 fg = m_Regs[7] >> 4;
UINT16 bg = m_Regs[7] & 15;
- /* Extra 8 pixels left border */
- for ( int x = TMS9928A_HORZ_DISPLAY_START; x < TMS9928A_HORZ_DISPLAY_START + 8; x++ )
+ /* Extra 6 pixels left border */
+ for ( int x = TMS9928A_HORZ_DISPLAY_START; x < TMS9928A_HORZ_DISPLAY_START + 6; x++ )
p[x] = bg;
- for ( int x = TMS9928A_HORZ_DISPLAY_START + 8; x < TMS9928A_HORZ_DISPLAY_START + 248; x+= 6, addr++ )
+ for ( int x = TMS9928A_HORZ_DISPLAY_START + 6; x < TMS9928A_HORZ_DISPLAY_START + 246; x+= 6, addr++ )
{
UINT16 charcode = m_vMem[ addr ];
UINT8 pattern = m_vMem[ m_pattern + ( charcode << 3 ) + ( y & 7 ) ];
@@ -342,8 +342,8 @@ void tms9928a_device::device_timer(emu_timer &timer, device_timer_id id, int par
p[x+i] = ( pattern & 0x80 ) ? fg : bg;
}
- /* Extra 8 pixels right border */
- for ( int x = TMS9928A_HORZ_DISPLAY_START + 248; x < TMS9928A_HORZ_DISPLAY_START + 256; x++ )
+ /* Extra 10 pixels right border */
+ for ( int x = TMS9928A_HORZ_DISPLAY_START + 246; x < TMS9928A_HORZ_DISPLAY_START + 256; x++ )
p[x] = bg;
}
break;
@@ -374,11 +374,11 @@ void tms9928a_device::device_timer(emu_timer &timer, device_timer_id id, int par
UINT16 fg = m_Regs[7] >> 4;
UINT16 bg = m_Regs[7] & 15;
- /* Extra 8 pixels left border */
- for ( int x = TMS9928A_HORZ_DISPLAY_START; x < TMS9928A_HORZ_DISPLAY_START + 8; x++ )
+ /* Extra 6 pixels left border */
+ for ( int x = TMS9928A_HORZ_DISPLAY_START; x < TMS9928A_HORZ_DISPLAY_START + 6; x++ )
p[x] = bg;
- for ( int x = TMS9928A_HORZ_DISPLAY_START + 8; x < TMS9928A_HORZ_DISPLAY_START + 248; x+= 6, addr++ )
+ for ( int x = TMS9928A_HORZ_DISPLAY_START + 6; x < TMS9928A_HORZ_DISPLAY_START + 246; x+= 6, addr++ )
{
UINT16 charcode = ( m_vMem[ addr ] + ( ( y >> 6 ) << 8 ) ) & m_patternmask;
UINT8 pattern = m_vMem[ m_pattern + ( charcode << 3 ) + ( y & 7 ) ];
@@ -387,8 +387,8 @@ void tms9928a_device::device_timer(emu_timer &timer, device_timer_id id, int par
p[x+i] = ( pattern & 0x80 ) ? fg : bg;
}
- /* Extra 8 pixels right border */
- for ( int x = TMS9928A_HORZ_DISPLAY_START + 248; x < TMS9928A_HORZ_DISPLAY_START + 256; x++ )
+ /* Extra 10 pixels right border */
+ for ( int x = TMS9928A_HORZ_DISPLAY_START + 246; x < TMS9928A_HORZ_DISPLAY_START + 256; x++ )
p[x] = bg;
}
break;
@@ -417,18 +417,18 @@ void tms9928a_device::device_timer(emu_timer &timer, device_timer_id id, int par
UINT16 fg = m_Regs[7] >> 4;
UINT16 bg = m_Regs[7] & 15;
- /* Extra 8 pixels left border */
- for ( int x = TMS9928A_HORZ_DISPLAY_START; x < TMS9928A_HORZ_DISPLAY_START + 8; x++ )
+ /* Extra 6 pixels left border */
+ for ( int x = TMS9928A_HORZ_DISPLAY_START; x < TMS9928A_HORZ_DISPLAY_START + 6; x++ )
p[x] = bg;
- for ( int x = TMS9928A_HORZ_DISPLAY_START + 8; x < TMS9928A_HORZ_DISPLAY_START + 248; x+= 6 )
+ for ( int x = TMS9928A_HORZ_DISPLAY_START + 6; x < TMS9928A_HORZ_DISPLAY_START + 246; x+= 6 )
{
p[x+0] = p[x+1] = p[x+2] = p[x+3] = fg;
p[x+4] = p[x+5] = bg;
}
- /* Extra 8 pixels right border */
- for ( int x = TMS9928A_HORZ_DISPLAY_START + 248; x < TMS9928A_HORZ_DISPLAY_START + 256; x++ )
+ /* Extra 10 pixels right border */
+ for ( int x = TMS9928A_HORZ_DISPLAY_START + 246; x < TMS9928A_HORZ_DISPLAY_START + 256; x++ )
p[x] = bg;
}
break;