src/mess/video/upd7220.c
| r10507 | r10508 | |
| 1039 | 1039 | for (y = sy; y < sy + len; y++) |
| 1040 | 1040 | { |
| 1041 | 1041 | addr = sad + (y * upd7220->pitch); |
| 1042 | | if (upd7220->draw_text_func) upd7220->draw_text_func(device, bitmap, upd7220->vram, addr, y, wd, upd7220->pitch,0,0,upd7220->aw * 8 - 1,upd7220->al - 1); |
| 1042 | if (upd7220->draw_text_func) upd7220->draw_text_func(device, bitmap, upd7220->vram, addr, y, wd, upd7220->pitch,0,0,upd7220->aw * 8 - 1,upd7220->al - 1, upd7220->lr); |
| 1043 | 1043 | } |
| 1044 | 1044 | |
| 1045 | 1045 | sy = y + 1; |
| r10507 | r10508 | |
| 1096 | 1096 | if (im) |
| 1097 | 1097 | draw_graphics_line(device, bitmap, addr, y, wd); |
| 1098 | 1098 | else |
| 1099 | | if (upd7220->draw_text_func) upd7220->draw_text_func(device, bitmap, upd7220->vram, addr, y, wd, upd7220->pitch,0,0,upd7220->aw * 8 - 1,upd7220->al - 1); |
| 1099 | if (upd7220->draw_text_func) upd7220->draw_text_func(device, bitmap, upd7220->vram, addr, y, wd, upd7220->pitch,0,0,upd7220->aw * 8 - 1,upd7220->al - 1,upd7220->lr); |
| 1100 | 1100 | } |
| 1101 | 1101 | |
| 1102 | 1102 | sy = y + 1; |
src/mess/video/upd7220.h
| r10507 | r10508 | |
| 57 | 57 | typedef void (*upd7220_display_pixels_func)(device_t *device, bitmap_t *bitmap, int y, int x, UINT32 address, UINT16 data); |
| 58 | 58 | #define UPD7220_DISPLAY_PIXELS(name) void name(device_t *device, bitmap_t *bitmap, int y, int x, UINT32 address, UINT16 data) |
| 59 | 59 | |
| 60 | | typedef void (*upd7220_draw_text_line)(device_t *device, bitmap_t *bitmap, UINT16 *vram, UINT32 addr, int y, int wd, int pitch,int screen_min_x,int screen_min_y,int screen_max_x, int screen_max_y); |
| 61 | | #define UPD7220_DRAW_TEXT_LINE(name) void name(device_t *device, bitmap_t *bitmap, UINT16 *vram, UINT32 addr, int y, int wd, int pitch,int screen_min_x,int screen_min_y,int screen_max_x, int screen_max_y) |
| 60 | typedef void (*upd7220_draw_text_line)(device_t *device, bitmap_t *bitmap, UINT16 *vram, UINT32 addr, int y, int wd, int pitch,int screen_min_x,int screen_min_y,int screen_max_x, int screen_max_y,int lr); |
| 61 | #define UPD7220_DRAW_TEXT_LINE(name) void name(device_t *device, bitmap_t *bitmap, UINT16 *vram, UINT32 addr, int y, int wd, int pitch,int screen_min_x,int screen_min_y,int screen_max_x, int screen_max_y,int lr) |
| 62 | 62 | |
| 63 | 63 | typedef struct _upd7220_interface upd7220_interface; |
| 64 | 64 | struct _upd7220_interface |