diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-29 21:12:55 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-29 21:12:55 -0800 |
commit | c105886c048e0700de01c6ba327684b67aa0aed1 (patch) | |
tree | ec752aa3ccacb7cc32a23b051aff0f9a9ed98bf4 /graphics.c | |
parent | 9041bb43b4d5de67cab2a2224afcd1c40d53ec87 (diff) | |
download | grv-c105886c048e0700de01c6ba327684b67aa0aed1.tar.gz grv-c105886c048e0700de01c6ba327684b67aa0aed1.tar.xz grv-c105886c048e0700de01c6ba327684b67aa0aed1.zip |
Clean up crap whitespace
Diffstat (limited to 'graphics.c')
-rw-r--r-- | graphics.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -127,13 +127,13 @@ static void put_screen(int tx, int ty) int attr; int pxwid = current.dwidth + 1; int bmask = blink_mask; - + attr = screendata[ty][tx].attr; fontp = grv_font[screendata[ty][tx].sym]; bgp = colors[(attr >> 4) & 7]; fgp = (bmask & attr) ? bgp : colors[attr & 15]; - + /* * This assumes that either unaligned references are okay, or * pitch will be a multiple of 4. @@ -320,7 +320,7 @@ void cls(void) SDL_Rect rect; lock_screen(); - + empty.sym = ' '; empty.attr = current.attr; @@ -349,17 +349,17 @@ struct saved_screen struct current_screen current; struct screen_char screendata[TS_HEIGHT][TS_WIDTH]; }; - + struct saved_screen *save_screen(void) { struct saved_screen *save = malloc(sizeof(struct saved_screen)); - + if ( !save ) return NULL; memcpy(&save->current, ¤t, sizeof(current)); memcpy(&save->screendata, &screendata, sizeof(screendata)); - + return save; } |