summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/bitmap.c
diff options
context:
space:
mode:
author Zsolt Vasvari <zsoltvas@mamedev.org>2008-02-24 13:30:08 +0000
committer Zsolt Vasvari <zsoltvas@mamedev.org>2008-02-24 13:30:08 +0000
commit803ece9d969ad6668a0b1aeb58b30500a1b7c4d9 (patch)
tree3c339641b613499d2dcdc03ea46aed6050f78cad /src/lib/util/bitmap.c
parent51cae46fac45a94b362742a7b3fa523ece5845cb (diff)
Removes 8-bit bitmap support and converts all previously 8-bit bitmaps to 16-bit
Diffstat (limited to 'src/lib/util/bitmap.c')
-rw-r--r--src/lib/util/bitmap.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/util/bitmap.c b/src/lib/util/bitmap.c
index 3c4dec454a5..69454a3cba4 100644
--- a/src/lib/util/bitmap.c
+++ b/src/lib/util/bitmap.c
@@ -183,12 +183,6 @@ void bitmap_fill(bitmap_t *dest, const rectangle *cliprect, UINT32 color)
/* based on the bpp go from there */
switch (dest->bpp)
{
- case 8:
- /* 8bpp always uses memset */
- for (y = fill.min_y; y <= fill.max_y; y++)
- memset(BITMAP_ADDR8(dest, y, fill.min_x), (UINT8)color, fill.max_x + 1 - fill.min_x);
- break;
-
case 16:
/* 16bpp can use memset if the bytes are equal */
if ((UINT8)(color >> 8) == (UINT8)color)
@@ -243,9 +237,6 @@ int bitmap_format_to_bpp(bitmap_format format)
/* choose a depth for the format */
switch (format)
{
- case BITMAP_FORMAT_INDEXED8:
- return 8;
-
case BITMAP_FORMAT_INDEXED16:
case BITMAP_FORMAT_RGB15:
case BITMAP_FORMAT_YUY16: