Previous 199869 Revisions Next

r31400 Wednesday 23rd July, 2014 at 13:44:52 UTC by hap
the cursor is slightly below the 5x7 character
[src/mess/drivers]cc40.c ti74.c
[src/mess/layout]cc40.lay ti74.lay

trunk/src/mess/layout/ti74.lay
r31399r31400
148148
149149
150150   <view name="Internal Layout">
151      <bounds left="0" top="0" right="189" bottom="28" />
151      <bounds left="0" top="0" right="189" bottom="29" />
152152
153153      <screen index="0">
154         <bounds x="1" y="9" width="187" height="10" />
154         <bounds x="1" y="9" width="187" height="11" />
155155      </screen>
156156
157157<!-- draw background around lcd screen matrix part -->
r31399r31400
160160         <bounds left="0" top="0" right="188" bottom="9.25" />
161161      </bezel>
162162      <bezel element="static_bg">
163         <bounds left="0" top="0" right="1.25" bottom="28" />
163         <bounds left="0" top="0" right="1.25" bottom="29" />
164164      </bezel>
165165      <bezel element="static_bg">
166         <bounds left="187.75" top="0" right="189" bottom="28" />
166         <bounds left="187.75" top="0" right="189" bottom="29" />
167167      </bezel>
168168      <bezel element="static_bg">
169         <bounds left="0" top="18.75" right="188" bottom="28" />
169         <bounds left="0" top="19.75" right="188" bottom="29" />
170170      </bezel>
171171
172172<!-- draw top row of lcd indicators -->
r31399r31400
201201<!-- draw bottom row of lcd indicators -->
202202
203203      <bezel name="lamp63" element="ind_basic">
204         <bounds x="16" y="22" width="20" height="5" />
204         <bounds x="16" y="23" width="20" height="5" />
205205      </bezel>
206206      <bezel name="lamp64" element="ind_calc">
207         <bounds x="43" y="22" width="20" height="5" />
207         <bounds x="43" y="23" width="20" height="5" />
208208      </bezel>
209209      <bezel name="lamp1" element="ind_deg">
210         <bounds x="70" y="22" width="20" height="5" />
210         <bounds x="70" y="23" width="20" height="5" />
211211      </bezel>
212212      <bezel name="lamp62" element="ind_rad">
213         <bounds x="97" y="22" width="20" height="5" />
213         <bounds x="97" y="23" width="20" height="5" />
214214      </bezel>
215215      <bezel name="lamp53" element="ind_grad">
216         <bounds x="124" y="22" width="20" height="5" />
216         <bounds x="124" y="23" width="20" height="5" />
217217      </bezel>
218218      <bezel name="lamp54" element="ind_stat">
219         <bounds x="151" y="22" width="20" height="5" />
219         <bounds x="151" y="23" width="20" height="5" />
220220      </bezel>
221221
222222   </view>
trunk/src/mess/layout/cc40.lay
r31399r31400
138138
139139
140140   <view name="Internal Layout">
141      <bounds left="0" top="0" right="189" bottom="32" />
141      <bounds left="0" top="0" right="189" bottom="33" />
142142
143143      <screen index="0">
144         <bounds x="1" y="11" width="187" height="10" />
144         <bounds x="1" y="11" width="187" height="11" />
145145      </screen>
146146
147147<!-- draw background around lcd screen matrix part -->
r31399r31400
150150         <bounds left="0" top="0" right="188" bottom="11.25" />
151151      </bezel>
152152      <bezel element="static_bg">
153         <bounds left="0" top="0" right="1.25" bottom="32" />
153         <bounds left="0" top="0" right="1.25" bottom="33" />
154154      </bezel>
155155      <bezel element="static_bg">
156         <bounds left="187.75" top="0" right="189" bottom="32" />
156         <bounds left="187.75" top="0" right="189" bottom="33" />
157157      </bezel>
158158      <bezel element="static_bg">
159         <bounds left="0" top="20.75" right="188" bottom="32" />
159         <bounds left="0" top="21.75" right="188" bottom="33" />
160160      </bezel>
161161
162162<!-- draw top row of lcd indicators -->
r31399r31400
197197<!-- draw bottom row of lcd indicators -->
198198
199199      <bezel name="lamp60" element="ind_error">
200         <bounds x="7" y="24" width="20" height="5" />
200         <bounds x="7" y="25" width="20" height="5" />
201201      </bezel>
202202
203203      <bezel name="lamp61" element="ind_user">
204         <bounds x="29" y="26" width="20" height="5" />
204         <bounds x="29" y="27" width="20" height="5" />
205205      </bezel>
206206      <bezel name="lamp62" element="ind_user">
207         <bounds x="51" y="26" width="20" height="5" />
207         <bounds x="51" y="27" width="20" height="5" />
208208      </bezel>
209209      <bezel name="lamp63" element="ind_user">
210         <bounds x="73" y="26" width="20" height="5" />
210         <bounds x="73" y="27" width="20" height="5" />
211211      </bezel>
212212      <bezel name="lamp50" element="ind_user">
213         <bounds x="95" y="26" width="20" height="5" />
213         <bounds x="95" y="27" width="20" height="5" />
214214      </bezel>
215215      <bezel name="lamp51" element="ind_user">
216         <bounds x="117" y="26" width="20" height="5" />
216         <bounds x="117" y="27" width="20" height="5" />
217217      </bezel>
218218      <bezel name="lamp52" element="ind_user">
219         <bounds x="139" y="26" width="20" height="5" />
219         <bounds x="139" y="27" width="20" height="5" />
220220      </bezel>
221221
222222      <bezel name="lamp53" element="ind_low">
223         <bounds x="165" y="25.5" width="12" height="5" />
223         <bounds x="165" y="26.5" width="12" height="5" />
224224      </bezel>
225225
226226
trunk/src/mess/drivers/ti74.c
r31399r31400
180180   else if (line < 2 && pos < 16)
181181   {
182182      // internal: 2*16, external: 1*31 + indicators
183      if (y == 7) y++; // the cursor is slightly below the 5x7 character
183184      bitmap.pix16(1 + y, 1 + line*16*6 + pos*6 + x) = state;
184185   }
185186}
r31399r31400
425426   MCFG_SCREEN_ADD("screen", LCD)
426427   MCFG_SCREEN_REFRESH_RATE(60) // arbitrary
427428   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
428   MCFG_SCREEN_SIZE(6*31+1, 9*1+1)
429   MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1)
429   MCFG_SCREEN_SIZE(6*31+1, 9*1+1+1)
430   MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1+1)
430431   MCFG_DEFAULT_LAYOUT(layout_ti74)
431432   MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update)
432433   MCFG_SCREEN_PALETTE("palette")
trunk/src/mess/drivers/cc40.c
r31399r31400
193193   else if (line < 2 && pos < 16)
194194   {
195195      // internal: 2*16, external: 1*31 + indicators
196      if (y == 7) y++; // the cursor is slightly below the 5x7 character
196197      bitmap.pix16(1 + y, 1 + line*16*6 + pos*6 + x) = state;
197198   }
198199}
r31399r31400
476477   MCFG_SCREEN_ADD("screen", LCD)
477478   MCFG_SCREEN_REFRESH_RATE(60) // arbitrary
478479   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
479   MCFG_SCREEN_SIZE(6*31+1, 9*1+1)
480   MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1)
480   MCFG_SCREEN_SIZE(6*31+1, 9*1+1+1)
481   MCFG_SCREEN_VISIBLE_AREA(0, 6*31, 0, 9*1+1)
481482   MCFG_DEFAULT_LAYOUT(layout_cc40)
482483   MCFG_SCREEN_UPDATE_DEVICE("hd44780", hd44780_device, screen_update)
483484   MCFG_SCREEN_PALETTE("palette")

Previous 199869 Revisions Next


© 1997-2024 The MAME Team