Previous 199869 Revisions Next

r19499 Wednesday 12th December, 2012 at 18:06:07 UTC by Angelo Salese
Removed unnecessary parameters from upd7220
[src/mess/drivers]a5105.c apc.c dmv.c pc9801.c qx10.c
[src/mess/video]upd7220.c upd7220.h

trunk/src/mess/video/upd7220.c
r19498r19499
412412
413413   if (LOG)
414414   {
415      logerror("uPD7220 '%s' Screen: %u x %u @ %f Hz\n", tag(), horiz_pix_total, vert_pix_total, 1 / ATTOSECONDS_TO_DOUBLE(refresh));
416      logerror("uPD7220 '%s' Visible Area: (%u, %u) - (%u, %u)\n", tag(), visarea.min_x, visarea.min_y, visarea.max_x, visarea.max_y);
415      printf("uPD7220 '%s' Screen: %u x %u @ %f Hz\n", tag(), horiz_pix_total, vert_pix_total, 1 / ATTOSECONDS_TO_DOUBLE(refresh));
416      printf("Visible Area: (%u, %u) - (%u, %u)\n", visarea.min_x, visarea.min_y, visarea.max_x, visarea.max_y);
417      printf("%d %d %d %d\n",m_vs,m_vbp,m_al,m_vfp);
417418   }
418419
419420   if (m_m)
r19498r19499
15701571         addr = sad + (y * m_pitch);
15711572
15721573         if (m_draw_text_cb)
1573            m_draw_text_cb(this, bitmap, addr, y, wd, m_pitch, 0, 0, m_aw * 8 - 1, m_al - 1, m_lr, m_dc, m_ead);
1574            m_draw_text_cb(this, bitmap, addr, y, wd, m_pitch, m_lr, m_dc, m_ead);
15741575      }
15751576
15761577      sy = y + 1;
r19498r19499
16371638               addr = (sad & 0x3ffff) + ((y / m_lr) * m_pitch);
16381639
16391640               if (m_draw_text_cb)
1640                  m_draw_text_cb(this, bitmap, addr, (y + tsy) / m_lr, wd, m_pitch, 0, 0, m_aw * 8 - 1, len + bsy - 1, m_lr, m_dc, m_ead);
1641                  m_draw_text_cb(this, bitmap, addr, (y + tsy) / m_lr, wd, m_pitch, m_lr, m_dc, m_ead);
16411642            }
16421643         }
16431644      }
trunk/src/mess/video/upd7220.h
r19498r19499
6767typedef void (*upd7220_display_pixels_func)(device_t *device, bitmap_rgb32 &bitmap, int y, int x, UINT32 address);
6868#define UPD7220_DISPLAY_PIXELS(name) void name(device_t *device, bitmap_rgb32 &bitmap, int y, int x, UINT32 address)
6969
70typedef void (*upd7220_draw_text_line)(device_t *device, bitmap_rgb32 &bitmap, 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, int cursor_on, int cursor_addr);
71#define UPD7220_DRAW_TEXT_LINE(name) void name(device_t *device, bitmap_rgb32 &bitmap, 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, int cursor_on, int cursor_addr)
70typedef void (*upd7220_draw_text_line)(device_t *device, bitmap_rgb32 &bitmap, UINT32 addr, int y, int wd, int pitch, int lr, int cursor_on, int cursor_addr);
71#define UPD7220_DRAW_TEXT_LINE(name) void name(device_t *device, bitmap_rgb32 &bitmap, UINT32 addr, int y, int wd, int pitch, int lr, int cursor_on, int cursor_addr)
7272
7373
7474// ======================> upd7220_interface
trunk/src/mess/drivers/a5105.c
r19498r19499
127127            int res_x,res_y;
128128            int pen = (tile_data >> xi) & 1 ? color : 0;
129129
130            if(yi >= 8) { pen = 0; }
131
132130            res_x = x * 8 + xi;
133131            res_y = y * lr + yi;
134132
135            if(res_x > screen_max_x || res_y > screen_max_y)
133            if(!device->machine().primary_screen->visible_area().contains(res_x, res_y))
136134               continue;
137135
136            if(yi >= 8) { pen = 0; }
137
138138            bitmap.pix32(res_y, res_x) = palette[pen];
139139         }
140140      }
trunk/src/mess/drivers/dmv.c
r19498r19499
166166            int res_x,res_y;
167167            int pen = (tile_data >> xi) & 1 ? 1 : 0;
168168
169            if(yi >= 16) { pen = 0; }
170
171169            res_x = x * 8 + xi;
172170            res_y = y * lr + yi;
173171
174            if(res_x > screen_max_x || res_y > screen_max_y)
172            if(!device->machine().primary_screen->visible_area().contains(res_x, res_y))
175173               continue;
176174
175            if(yi >= 16) { pen = 0; }
176
177177            bitmap.pix32(res_y, res_x) = palette[pen];
178178         }
179179      }
trunk/src/mess/drivers/pc9801.c
r19498r19499
5959   - Apple Club 1: how to pass an hand?
6060   (Applesauce Pirates)
6161
62   - Brandish 2: Intro needs some window masking effects;
63   - Dragon Buster: missing bitplanes for the PCG (or not?), slight issue with window masking;
62   - Brandish 2: Intro needs some window masking effects (or not?);
63   - Dragon Buster: slight issue with window masking;
6464   - Far Side Moon: doesn't detect sound board (tied to 0x00ec ports)
6565   - Jan Borg Suzume: gets stuck at a pic8259 read;
6666   - Jump Hero: right status display isn't shown during gameplay (changes the mode dynamically?)
r19498r19499
28552855   PORT_BIT( 0xff, 0x00, IPT_MOUSE_Y ) PORT_RESET PORT_SENSITIVITY(30) PORT_KEYDELTA(30)
28562856
28572857   PORT_START("MOUSE_B")
2858   PORT_BIT(0x1f, IP_ACTIVE_LOW, IPT_UNUSED )
2858   PORT_BIT(0x0f, IP_ACTIVE_LOW, IPT_UNUSED )
2859   PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_UNUSED )
28592860   PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_BUTTON3) PORT_CODE(MOUSECODE_BUTTON3) PORT_NAME("Mouse Middle Button")
28602861   PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_BUTTON2) PORT_CODE(MOUSECODE_BUTTON2) PORT_NAME("Mouse Right Button")
28612862   PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_BUTTON1) PORT_CODE(MOUSECODE_BUTTON1) PORT_NAME("Mouse Left Button")
r19498r19499
32343235   UINT8 isporthi;
32353236   const char *const mousenames[] = { "MOUSE_X", "MOUSE_Y" };
32363237
3237   res = ioport("MOUSE_B")->read() & 0xe0;
3238   res = ioport("MOUSE_B")->read() & 0xf0;
32383239   isporthi = ((m_mouse.control & 0x20) >> 5)*4;
32393240
32403241   if((m_mouse.control & 0x80) == 0)
trunk/src/mess/drivers/qx10.c
r19498r19499
214214         {
215215            int res_x,res_y;
216216
217            res_x = x * 8 + xi;
218            res_y = y * lr + yi;
219
220            if(!device->machine().primary_screen->visible_area().contains(res_x, res_y))
221               continue;
222
217223            if(yi >= 16)
218224               pen = 0;
219225            else
220226               pen = ((tile_data >> xi) & 1) ? color : 0;
221227
222            res_x = x * 8 + xi;
223            res_y = y * lr + yi;
224
225            if(res_x > screen_max_x || res_y > screen_max_y)
226               continue;
227
228228            if(pen)
229229               bitmap.pix32(res_y, res_x) = palette[pen];
230230         }
trunk/src/mess/drivers/apc.c
r19498r19499
231231            res_x = (x*8+xi) * (1);
232232            res_y = y*lr+yi;
233233
234            if(res_x > 640 || res_y > 494) //TODO
234            if(!device->machine().primary_screen->visible_area().contains(res_x, res_y))
235235               continue;
236236
237237            /*

Previous 199869 Revisions Next


© 1997-2024 The MAME Team