| Previous | 15994 Revisions | Next |
| r10627 Tuesday 1st March, 2011 at 04:00:49 UTC by Angelo Salese |
|---|
| [uPD7220]: Fixed yet another divide by zero bug |
| [src/mess/video] | upd7220.c |
| r10626 | r10627 | |
|---|---|---|
| 687 | 687 | for(i = 0;i<line_size;i++) |
| 688 | 688 | { |
| 689 | 689 | line_step = (upd7220->figs.d1 * i); |
| 690 | line_step/= upd7220->figs.dc; | |
| 691 | line_step++; | |
| 690 | line_step/= (upd7220->figs.dc + 1); | |
| 692 | 691 | line_step >>= 1; |
| 693 | 692 | dot = (line_pattern >> ((15-i+upd7220->dad) & 0xf)) & 1; |
| 694 | 693 | draw_pixel(upd7220,x + (line_step*line_x_step[upd7220->figs.dir]),y + (line_step*line_y_step[upd7220->figs.dir]),dot << ((x + line_step*line_x_step[upd7220->figs.dir]) & 0xf)); |
| Previous | 15994 Revisions | Next |