aboutsummaryrefslogtreecommitdiffstats
path: root/graphics.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-29 21:12:55 -0800
committerH. Peter Anvin <hpa@zytor.com>2012-02-29 21:12:55 -0800
commitc105886c048e0700de01c6ba327684b67aa0aed1 (patch)
treeec752aa3ccacb7cc32a23b051aff0f9a9ed98bf4 /graphics.c
parent9041bb43b4d5de67cab2a2224afcd1c40d53ec87 (diff)
downloadgrv-c105886c048e0700de01c6ba327684b67aa0aed1.tar.gz
grv-c105886c048e0700de01c6ba327684b67aa0aed1.tar.xz
grv-c105886c048e0700de01c6ba327684b67aa0aed1.zip
Clean up crap whitespace
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics.c b/graphics.c
index ea47d3b..161007e 100644
--- a/graphics.c
+++ b/graphics.c
@@ -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, &current, sizeof(current));
memcpy(&save->screendata, &screendata, sizeof(screendata));
-
+
return save;
}