Previous 15994 Revisions Next

r2862 Tuesday 17th June, 2008 at 13:41:06 UTC by Miodrag Milanović
[I8275] Adding char delay because of implementation in Partner driver
[src/mess/machine]apogee.c mikrosha.c partner.c radio86.c
[src/mess/video]i8275.c i8275.h

src/mess/video/i8275.c
r2861r2862
331331   UINT8 vsp = 0;
332332   UINT8 lten = 0;
333333   UINT8 fifo_read = 0;
334   UINT8 curcol = (i8275->field_attribute_mode==0) ? i8275->cursor_col : i8275->cursor_col-1;
334
335335   for(line=0;line<=i8275->lines_per_row;line++) {
336336      // If line counter is 1 then select right values
337337      lc = (i8275->line_counter_mode==1) ? (line - 1) % i8275->lines_per_row : line;
r2861r2862
363363            }           
364364         }
365365         
366         if ((i8275->current_row == i8275->cursor_row) && (xpos == curcol)) {
366         if ((i8275->current_row == i8275->cursor_row) && (xpos == i8275->cursor_col - i8275->intf->char_delay)) {
367367            int vis = 1;
368368            if ((i8275->cursor_format & 2)==0) {
369369               vis = (i8275->cursor_blink_cnt<16) ? 1 : 0;
src/mess/video/i8275.h
r2861r2862
2828struct _i8275_interface
2929{
3030   const char *screen_tag;      /* screen we are acting on */
31   int width;               /* char width in pixels*/
32
31   int width;               /* char width in pixels */
32   int char_delay;            /* delay of display char */
3333   i8275_dma_request_func dma_request;
3434
3535   i8275_int_request_func int_request;
src/mess/machine/radio86.c
r2861r2862
7575const i8275_interface radio86_i8275_interface = {
7676   "main",
7777   6,
78   0,
7879   radio86_video_dma_request,
7980   NULL,
8081   radio86_display_pixels
src/mess/machine/mikrosha.c
r2861r2862
9090const i8275_interface mikrosha_i8275_interface = {
9191   "main",
9292   6,
93   0,
9394   mikrosha_video_dma_request,
9495   NULL,
9596   mikrosha_display_pixels
src/mess/machine/partner.c
r2861r2862
7474const i8275_interface partner_i8275_interface = {
7575   "main",
7676   6,
77   1,
7778   partner_video_dma_request,
7879   NULL,
7980   partner_display_pixels
src/mess/machine/apogee.c
r2861r2862
7575const i8275_interface apogee_i8275_interface = {
7676   "main",
7777   6,
78   0,
7879   apogee_video_dma_request,
7980   NULL,
8081   apogee_display_pixels

Previous 15994 Revisions Next


© 1998-2018 The MESS Team