summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/cpu/tms34010
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2012-01-02 04:59:11 +0000
committer Aaron Giles <aaron@aarongiles.com>2012-01-02 04:59:11 +0000
commit80cd316a2ad134c67ca028a606266bb733a025b6 (patch)
treee198baaf50207b99fd46fb4696cdcda17e94ab65 /src/emu/cpu/tms34010
parent1ded844ee73ec0768de1b7ccba5491c92fd4ad5a (diff)
Bulk conversion of bitmap_t * to bitmap_t & . With this change the
parameters for the global SCREEN_UPDATE callback match the parameters for the driver_device version. Added allocate() and deallocate() methods to bitmap_t to permit cleaner handling of bitmaps in drivers and modern devices. [Aaron Giles]
Diffstat (limited to 'src/emu/cpu/tms34010')
-rw-r--r--src/emu/cpu/tms34010/tms34010.c8
-rw-r--r--src/emu/cpu/tms34010/tms34010.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/cpu/tms34010/tms34010.c b/src/emu/cpu/tms34010/tms34010.c
index 36466e1ceeb..a4e25fd006a 100644
--- a/src/emu/cpu/tms34010/tms34010.c
+++ b/src/emu/cpu/tms34010/tms34010.c
@@ -1117,17 +1117,17 @@ SCREEN_UPDATE( tms340x0 )
params.heblnk = params.hsblnk = cliprect.max_x + 1;
/* blank out the blank regions */
- if (bitmap->bpp() == 16)
+ if (bitmap.bpp() == 16)
{
- UINT16 *dest = &bitmap->pix16(cliprect.min_y);
+ UINT16 *dest = &bitmap.pix16(cliprect.min_y);
for (x = cliprect.min_x; x < params.heblnk; x++)
dest[x] = blackpen;
for (x = params.hsblnk; x <= cliprect.max_y; x++)
dest[x] = blackpen;
}
- else if (bitmap->bpp() == 32)
+ else if (bitmap.bpp() == 32)
{
- UINT32 *dest = &bitmap->pix32(cliprect.min_y);
+ UINT32 *dest = &bitmap.pix32(cliprect.min_y);
for (x = cliprect.min_x; x < params.heblnk; x++)
dest[x] = blackpen;
for (x = params.hsblnk; x <= cliprect.max_y; x++)
diff --git a/src/emu/cpu/tms34010/tms34010.h b/src/emu/cpu/tms34010/tms34010.h
index 44c6d512d4e..46c838c56a2 100644
--- a/src/emu/cpu/tms34010/tms34010.h
+++ b/src/emu/cpu/tms34010/tms34010.h
@@ -196,7 +196,7 @@ struct _tms34010_config
const char *screen_tag; /* the screen operated on */
UINT32 pixclock; /* the pixel clock (0 means don't adjust screen size) */
int pixperclock; /* pixels per clock */
- void (*scanline_callback)(screen_device &screen, bitmap_t *bitmap, int scanline, const tms34010_display_params *params);
+ void (*scanline_callback)(screen_device &screen, bitmap_t &bitmap, int scanline, const tms34010_display_params *params);
void (*output_int)(device_t *device, int state); /* output interrupt callback */
void (*to_shiftreg)(address_space *space, offs_t, UINT16 *); /* shift register write */
void (*from_shiftreg)(address_space *space, offs_t, UINT16 *); /* shift register read */