src/mess/video/crt.c
| r1611 | r1612 | |
| 135 | 135 | |
| 136 | 136 | |
| 137 | 137 | /* |
| 138 | | video_update_crt |
| 138 | VIDEO_UPDATE( crt ) |
| 139 | 139 | |
| 140 | 140 | update the bitmap |
| 141 | 141 | */ |
| 142 | | void video_update_crt(mame_bitmap *bitmap) |
| 142 | VIDEO_UPDATE( crt ) |
| 143 | 143 | { |
| 144 | 144 | int i, p_i; |
| 145 | 145 | int y; |
| r1611 | r1612 | |
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | /* draw pixel on screen */ |
| 173 | | //plot_pixel(bitmap, x, y+crt_window_offset_y, Machine->pens[node->intensity]); |
| 174 | | line[x] = Machine->pens[node->intensity]; |
| 173 | //plot_pixel(bitmap, x, y+crt_window_offset_y, machine->pens[node->intensity]); |
| 174 | line[x] = machine->pens[node->intensity]; |
| 175 | 175 | |
| 176 | 176 | if (node->intensity != 0) |
| 177 | 177 | p_i = i; /* current node will be next iteration's previous node */ |
| r1611 | r1612 | |
| 188 | 188 | |
| 189 | 189 | decay_counter = 0; |
| 190 | 190 | } |
| 191 | |
| 192 | return 0; |
| 191 | 193 | } |
src/mess/video/crt.h
| r1611 | r1612 | |
| 1 | /************************************************************************* |
| 2 | |
| 3 | video/crt.h |
| 4 | |
| 5 | CRT video emulation for TX-0 and PDP-1 |
| 6 | |
| 7 | *************************************************************************/ |
| 8 | |
| 9 | #ifndef CRT_H_ |
| 10 | #define CRT_H_ |
| 11 | |
| 12 | |
| 13 | /*----------- defined in video/crt.c -----------*/ |
| 14 | |
| 1 | 15 | int video_start_crt(int num_levels, int offset_x, int offset_y, int width, int height); |
| 2 | 16 | void crt_plot(int x, int y); |
| 3 | 17 | VIDEO_EOF( crt ); |
| 4 | | void video_update_crt(mame_bitmap *bitmap); |
| 18 | VIDEO_UPDATE( crt ); |
| 19 | |
| 20 | |
| 21 | #endif /* CRT_H_ */ |