Mercurial > hg > dmlib
diff src/dmgfx.c @ 1102:e06abfde6c39
Cosmetics pass: Remove excess whitespace.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 03 Mar 2015 23:22:36 +0200 |
parents | 56e12109b936 |
children |
line wrap: on
line diff
--- a/src/dmgfx.c Tue Mar 03 22:32:34 2015 +0200 +++ b/src/dmgfx.c Tue Mar 03 23:22:36 2015 +0200 @@ -18,12 +18,12 @@ cx0 = screen->clip_rect.x, cy0 = screen->clip_rect.y, cx1 = screen->clip_rect.x + screen->clip_rect.w - 1, cy1 = screen->clip_rect.y + screen->clip_rect.h - 1; - + DM_SWAP(int, x0, x1); if (yc < cy0|| yc > cy1 || x1 < cx0 || x0 > cx1) return; if (x0 < cx0) x0 = cx0; if (x1 > cx1) x1 = cx1; - + int x = x1 - x0 + 1; Uint8 *pix = ((Uint8 *) screen->pixels) + yc * screen->pitch + (x0 * bpp); switch (screen->format->BitsPerPixel) @@ -32,7 +32,7 @@ while (x--) *pix++ = col; break; - + case 32: { Uint32 *p = (Uint32 *) pix; @@ -68,7 +68,7 @@ pix += pitch; } break; - + case 32: { Uint32 *p = (Uint32 *) pix;