mirror of
https://github.com/holub/mame
synced 2025-07-08 19:31:59 +03:00
the cursor is slightly below the 5x7 character
This commit is contained in:
parent
1fd5d11389
commit
59de5b1854
@ -193,6 +193,7 @@ static HD44780_PIXEL_UPDATE(cc40_pixel_update)
|
||||
else if (line < 2 && pos < 16)
|
||||
{
|
||||
// internal: 2*16, external: 1*31 + indicators
|
||||
if (y == 7) y++; // the cursor is slightly below the 5x7 character
|
||||
bitmap.pix16(1 + y, 1 + line*16*6 + pos*6 + x) = state;
|
||||
}
|
||||
}
|
||||
@ -476,8 +477,8 @@ static MACHINE_CONFIG_START( cc40, cc40_state )
|
||||
MCFG_SCREEN_ADD("screen", LCD)
|
||||
MCFG_SCREEN_REFRESH_RATE(60) // arbitrary
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
|
||||
MCFG_SCREEN_SIZE(6*31+1, 9*1+1)
|
||||
MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1)
|
||||
MCFG_SCREEN_SIZE(6*31+1, 9*1+1+1)
|
||||
MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1+1)
|
||||
MCFG_DEFAULT_LAYOUT(layout_cc40)
|
||||
MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
@ -180,6 +180,7 @@ static HD44780_PIXEL_UPDATE(ti74_pixel_update)
|
||||
else if (line < 2 && pos < 16)
|
||||
{
|
||||
// internal: 2*16, external: 1*31 + indicators
|
||||
if (y == 7) y++; // the cursor is slightly below the 5x7 character
|
||||
bitmap.pix16(1 + y, 1 + line*16*6 + pos*6 + x) = state;
|
||||
}
|
||||
}
|
||||
@ -425,8 +426,8 @@ static MACHINE_CONFIG_START( ti74, ti74_state )
|
||||
MCFG_SCREEN_ADD("screen", LCD)
|
||||
MCFG_SCREEN_REFRESH_RATE(60) // arbitrary
|
||||
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
|
||||
MCFG_SCREEN_SIZE(6*31+1, 9*1+1)
|
||||
MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1)
|
||||
MCFG_SCREEN_SIZE(6*31+1, 9*1+1+1)
|
||||
MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1+1)
|
||||
MCFG_DEFAULT_LAYOUT(layout_ti74)
|
||||
MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
@ -138,10 +138,10 @@
|
||||
|
||||
|
||||
<view name="Internal Layout">
|
||||
<bounds left="0" top="0" right="189" bottom="32" />
|
||||
<bounds left="0" top="0" right="189" bottom="33" />
|
||||
|
||||
<screen index="0">
|
||||
<bounds x="1" y="11" width="187" height="10" />
|
||||
<bounds x="1" y="11" width="187" height="11" />
|
||||
</screen>
|
||||
|
||||
<!-- draw background around lcd screen matrix part -->
|
||||
@ -150,13 +150,13 @@
|
||||
<bounds left="0" top="0" right="188" bottom="11.25" />
|
||||
</bezel>
|
||||
<bezel element="static_bg">
|
||||
<bounds left="0" top="0" right="1.25" bottom="32" />
|
||||
<bounds left="0" top="0" right="1.25" bottom="33" />
|
||||
</bezel>
|
||||
<bezel element="static_bg">
|
||||
<bounds left="187.75" top="0" right="189" bottom="32" />
|
||||
<bounds left="187.75" top="0" right="189" bottom="33" />
|
||||
</bezel>
|
||||
<bezel element="static_bg">
|
||||
<bounds left="0" top="20.75" right="188" bottom="32" />
|
||||
<bounds left="0" top="21.75" right="188" bottom="33" />
|
||||
</bezel>
|
||||
|
||||
<!-- draw top row of lcd indicators -->
|
||||
@ -197,30 +197,30 @@
|
||||
<!-- draw bottom row of lcd indicators -->
|
||||
|
||||
<bezel name="lamp60" element="ind_error">
|
||||
<bounds x="7" y="24" width="20" height="5" />
|
||||
<bounds x="7" y="25" width="20" height="5" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="lamp61" element="ind_user">
|
||||
<bounds x="29" y="26" width="20" height="5" />
|
||||
<bounds x="29" y="27" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp62" element="ind_user">
|
||||
<bounds x="51" y="26" width="20" height="5" />
|
||||
<bounds x="51" y="27" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp63" element="ind_user">
|
||||
<bounds x="73" y="26" width="20" height="5" />
|
||||
<bounds x="73" y="27" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp50" element="ind_user">
|
||||
<bounds x="95" y="26" width="20" height="5" />
|
||||
<bounds x="95" y="27" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp51" element="ind_user">
|
||||
<bounds x="117" y="26" width="20" height="5" />
|
||||
<bounds x="117" y="27" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp52" element="ind_user">
|
||||
<bounds x="139" y="26" width="20" height="5" />
|
||||
<bounds x="139" y="27" width="20" height="5" />
|
||||
</bezel>
|
||||
|
||||
<bezel name="lamp53" element="ind_low">
|
||||
<bounds x="165" y="25.5" width="12" height="5" />
|
||||
<bounds x="165" y="26.5" width="12" height="5" />
|
||||
</bezel>
|
||||
|
||||
|
||||
|
@ -148,10 +148,10 @@
|
||||
|
||||
|
||||
<view name="Internal Layout">
|
||||
<bounds left="0" top="0" right="189" bottom="28" />
|
||||
<bounds left="0" top="0" right="189" bottom="29" />
|
||||
|
||||
<screen index="0">
|
||||
<bounds x="1" y="9" width="187" height="10" />
|
||||
<bounds x="1" y="9" width="187" height="11" />
|
||||
</screen>
|
||||
|
||||
<!-- draw background around lcd screen matrix part -->
|
||||
@ -160,13 +160,13 @@
|
||||
<bounds left="0" top="0" right="188" bottom="9.25" />
|
||||
</bezel>
|
||||
<bezel element="static_bg">
|
||||
<bounds left="0" top="0" right="1.25" bottom="28" />
|
||||
<bounds left="0" top="0" right="1.25" bottom="29" />
|
||||
</bezel>
|
||||
<bezel element="static_bg">
|
||||
<bounds left="187.75" top="0" right="189" bottom="28" />
|
||||
<bounds left="187.75" top="0" right="189" bottom="29" />
|
||||
</bezel>
|
||||
<bezel element="static_bg">
|
||||
<bounds left="0" top="18.75" right="188" bottom="28" />
|
||||
<bounds left="0" top="19.75" right="188" bottom="29" />
|
||||
</bezel>
|
||||
|
||||
<!-- draw top row of lcd indicators -->
|
||||
@ -201,22 +201,22 @@
|
||||
<!-- draw bottom row of lcd indicators -->
|
||||
|
||||
<bezel name="lamp63" element="ind_basic">
|
||||
<bounds x="16" y="22" width="20" height="5" />
|
||||
<bounds x="16" y="23" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp64" element="ind_calc">
|
||||
<bounds x="43" y="22" width="20" height="5" />
|
||||
<bounds x="43" y="23" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp1" element="ind_deg">
|
||||
<bounds x="70" y="22" width="20" height="5" />
|
||||
<bounds x="70" y="23" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp62" element="ind_rad">
|
||||
<bounds x="97" y="22" width="20" height="5" />
|
||||
<bounds x="97" y="23" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp53" element="ind_grad">
|
||||
<bounds x="124" y="22" width="20" height="5" />
|
||||
<bounds x="124" y="23" width="20" height="5" />
|
||||
</bezel>
|
||||
<bezel name="lamp54" element="ind_stat">
|
||||
<bounds x="151" y="22" width="20" height="5" />
|
||||
<bounds x="151" y="23" width="20" height="5" />
|
||||
</bezel>
|
||||
|
||||
</view>
|
||||
|
Loading…
Reference in New Issue
Block a user