Mercurial > hg > dmlib
changeset 325:41889c480291
Remove 15/16 bit support from h/v line drawing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 14 Oct 2012 18:08:22 +0300 |
parents | f2b65aa474c9 |
children | 9cc4c6c52938 |
files | dmgfx.c |
diffstat | 1 files changed, 0 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- a/dmgfx.c Sun Oct 14 16:13:31 2012 +0300 +++ b/dmgfx.c Sun Oct 14 18:08:22 2012 +0300 @@ -33,24 +33,6 @@ *pix++ = col; break; - case 15: - case 16: - { - Uint16 *p = (Uint16 *) pix; - for (x = x0; x <= x1; x++) - *p++ = col; - } - break; - - case 24: - for (x = x0; x <= x1; x++) - { - *pix++ = col; - *pix++ = col; - *pix++ = col; - } - break; - case 32: { Uint32 *p = (Uint32 *) pix; @@ -84,20 +66,6 @@ *pix = col; break; - case 16: - case 15: - { - Uint16 *p = (Uint16 *) pix; - for (y = y0; y <= y1; y++, p += pitch) - *p = col; - } - break; - - case 24: - for (y = y0; y <= y1; y++, pix += pitch) - pix[0] = pix[1] = pix[2] = col; - break; - case 32: { Uint32 *p = (Uint32 *) pix;