Previous 15994 Revisions Next

r9045 Sunday 5th September, 2010 at 13:52:41 UTC by Angelo Salese
[MZ-2500]: Fixed 10/20 TV graphic alignment, needed by Dust Box
[src/mess/drivers]mz2500.c

src/mess/drivers/mz2500.c
r9044r9045
139139   UINT8 *gfx_data;
140140   UINT8 y_step;
141141   UINT8 s_y;
142   UINT8 y_height;
142143
143144   count = (map_addr & 0x7ff);
144145
145146   y_step = (text_font_reg) ? 1 : 2;
147   y_height = (text_reg[0] & 0x10) ? 10 : 8;
146148   s_y = text_reg[9] & 0xf;
147149
148150   for (y=0;y<26*y_step;y+=y_step)
r9044r9045
187189               int res_x,res_y;
188190
189191               res_x = x*8+xi;
190               res_y = y*8+yi-s_y;
192               res_y = y*y_height+yi-s_y;
191193
192194               /* check TV window boundaries */
193195               if(res_x < tv_hs || res_x >= tv_he || res_y < tv_vs || res_y >= tv_ve)
r9044r9045
229231   UINT8 *gfx_data;
230232   UINT8 y_step;
231233   UINT8 s_y;
234   UINT8 y_height;
232235
233236   count = (((plane * 0x400) + map_addr) & 0x7ff);
234237
235238   y_step = (text_font_reg) ? 1 : 2;
239   y_height = (text_reg[0] & 0x10) ? 10 : 8;
236240   s_y = text_reg[9] & 0xf;
237241
238242   for (y=0;y<26*y_step;y+=y_step)
r9044r9045
277281               int res_x,res_y;
278282
279283               res_x = x*8+xi;
280               res_y = y*8+yi-s_y;
284               res_y = y*y_height+yi-s_y;
281285
282286               /* check TV window boundaries */
283287               if(res_x < tv_hs || res_x >= tv_he || res_y < tv_vs || res_y >= tv_ve)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team