src/mess/drivers/mz2500.c
| r9044 | r9045 | |
| 139 | 139 | UINT8 *gfx_data; |
| 140 | 140 | UINT8 y_step; |
| 141 | 141 | UINT8 s_y; |
| 142 | UINT8 y_height; |
| 142 | 143 | |
| 143 | 144 | count = (map_addr & 0x7ff); |
| 144 | 145 | |
| 145 | 146 | y_step = (text_font_reg) ? 1 : 2; |
| 147 | y_height = (text_reg[0] & 0x10) ? 10 : 8; |
| 146 | 148 | s_y = text_reg[9] & 0xf; |
| 147 | 149 | |
| 148 | 150 | for (y=0;y<26*y_step;y+=y_step) |
| r9044 | r9045 | |
| 187 | 189 | int res_x,res_y; |
| 188 | 190 | |
| 189 | 191 | res_x = x*8+xi; |
| 190 | | res_y = y*8+yi-s_y; |
| 192 | res_y = y*y_height+yi-s_y; |
| 191 | 193 | |
| 192 | 194 | /* check TV window boundaries */ |
| 193 | 195 | if(res_x < tv_hs || res_x >= tv_he || res_y < tv_vs || res_y >= tv_ve) |
| r9044 | r9045 | |
| 229 | 231 | UINT8 *gfx_data; |
| 230 | 232 | UINT8 y_step; |
| 231 | 233 | UINT8 s_y; |
| 234 | UINT8 y_height; |
| 232 | 235 | |
| 233 | 236 | count = (((plane * 0x400) + map_addr) & 0x7ff); |
| 234 | 237 | |
| 235 | 238 | y_step = (text_font_reg) ? 1 : 2; |
| 239 | y_height = (text_reg[0] & 0x10) ? 10 : 8; |
| 236 | 240 | s_y = text_reg[9] & 0xf; |
| 237 | 241 | |
| 238 | 242 | for (y=0;y<26*y_step;y+=y_step) |
| r9044 | r9045 | |
| 277 | 281 | int res_x,res_y; |
| 278 | 282 | |
| 279 | 283 | res_x = x*8+xi; |
| 280 | | res_y = y*8+yi-s_y; |
| 284 | res_y = y*y_height+yi-s_y; |
| 281 | 285 | |
| 282 | 286 | /* check TV window boundaries */ |
| 283 | 287 | if(res_x < tv_hs || res_x >= tv_he || res_y < tv_vs || res_y >= tv_ve) |