Previous 15994 Revisions Next

r1612 Saturday 26th January, 2008 at 01:12:15 UTC by Dirk Best
[CRT] Updated to use the VIDEO_UPDATE macro and cleaned up the include file
[src/mess/video]crt.c crt.h pdp1.c tx0.c

src/mess/video/pdp1.c
r1611r1612
8888VIDEO_UPDATE( pdp1 )
8989{
9090   pdp1_erase_lightpen(bitmap);
91   video_update_crt(bitmap);
91   VIDEO_UPDATE_CALL(crt);
9292   pdp1_draw_lightpen(bitmap);
9393
9494   pdp1_draw_panel(panel_bitmap);
src/mess/video/tx0.c
r1611r1612
7272*/
7373VIDEO_UPDATE( tx0 )
7474{
75   video_update_crt(bitmap);
75   VIDEO_UPDATE_CALL(crt);
7676
7777   tx0_draw_panel(panel_bitmap);
7878   copybitmap(bitmap, panel_bitmap, 0, 0, panel_window_offset_x, panel_window_offset_y, &machine->screen[0].visarea, TRANSPARENCY_NONE, 0);
src/mess/video/crt.c
r1611r1612
135135
136136
137137/*
138   video_update_crt
138   VIDEO_UPDATE( crt )
139139
140140   update the bitmap
141141*/
142void video_update_crt(mame_bitmap *bitmap)
142VIDEO_UPDATE( crt )
143143{
144144   int i, p_i;
145145   int y;
r1611r1612
170170            }
171171
172172            /* 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];
175175
176176            if (node->intensity != 0)
177177               p_i = i;   /* current node will be next iteration's previous node */
r1611r1612
188188
189189      decay_counter = 0;
190190   }
191
192   return 0;
191193}
src/mess/video/crt.h
r1611r1612
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
115int video_start_crt(int num_levels, int offset_x, int offset_y, int width, int height);
216void crt_plot(int x, int y);
317VIDEO_EOF( crt );
4void video_update_crt(mame_bitmap *bitmap);
18VIDEO_UPDATE( crt );
19
20
21#endif /* CRT_H_ */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team