Index: uspace/dist/src/c/demos/tetris/screen.c
===================================================================
--- uspace/dist/src/c/demos/tetris/screen.c	(revision a53ed3a8097360ccf174e8d94fb407db919eb66a)
+++ uspace/dist/src/c/demos/tetris/screen.c	(revision a1a81f698d5d7a69659be156314cb47101fde090)
@@ -148,8 +148,8 @@
 	sysarg_t ccap;
 	errno_t rc = console_get_color_cap(console, &ccap);
-	
+
 	if (rc != EOK)
 		return false;
-	
+
 	return ((ccap & CONSOLE_CAP_RGB) == CONSOLE_CAP_RGB);
 }
@@ -161,8 +161,8 @@
 {
 	winsize_t ws;
-	
+
 	Rows = 0;
 	Cols = 0;
-	
+
 	if (get_display_size(&ws) == 0) {
 		Rows = ws.ws_row;
@@ -171,8 +171,8 @@
 
 	use_color = get_display_color_sup();
-	
+
 	if ((Rows < MINROWS) || (Cols < MINCOLS)) {
 		char smallscr[55];
-		
+
 		snprintf(smallscr, sizeof(smallscr),
 		    "the screen is too small (must be at least %dx%d)",
@@ -181,5 +181,5 @@
 	}
 	isset = 1;
-	
+
 	scr_clear();
 }
@@ -197,5 +197,5 @@
 	if (isset)
 		scr_end();
-	
+
 	errx(1, "aborting: %s", why);
 }
@@ -213,8 +213,8 @@
 	int j;
 	int ccol;
-	
+
 	/* Always leave cursor after last displayed point */
 	curscreen[D_LAST * B_COLS - 1] = -1;
-	
+
 	if (score != curscore) {
 		moveto(0, 0);
@@ -222,5 +222,5 @@
 		curscore = score;
 	}
-	
+
 	/* Draw preview of next pattern */
 	if ((showpreview) && (nextshape != lastshape)) {
@@ -228,7 +228,7 @@
 		static int r = 5, c = 2;
 		int tr, tc, t;
-		
+
 		lastshape = nextshape;
-		
+
 		/* Clean */
 		resume_normal();
@@ -241,8 +241,8 @@
 		moveto(r + 2, c - 1);
 		putstr("          ");
-		
+
 		moveto(r - 3, c - 2);
 		putstr("Next shape:");
-		
+
 		/* Draw */
 		start_standout(nextshape->color);
@@ -252,8 +252,8 @@
 			t = c + r * B_COLS;
 			t += nextshape->off[i];
-			
+
 			tr = t / B_COLS;
 			tc = t % B_COLS;
-			
+
 			moveto(tr, 2*tc);
 			putstr("  ");
@@ -261,5 +261,5 @@
 		resume_normal();
 	}
-	
+
 	bp = &board[D_FIRST * B_COLS];
 	sp = &curscreen[D_FIRST * B_COLS];
@@ -269,5 +269,5 @@
 			if (*sp == (so = *bp))
 				continue;
-			
+
 			*sp = so;
 			if (i != ccol) {
@@ -278,5 +278,5 @@
 				moveto(RTOD(j), CTOD(i));
 			}
-			
+
 			if (so != cur_so) {
 				if (so)
@@ -287,5 +287,5 @@
 			}
 			putstr("  ");
-			
+
 			ccol = i + 1;
 			/*
@@ -297,8 +297,8 @@
 			 * the next cell is a different color.
 			 */
-			
+
 			if ((i > STOP) || (sp[1] != bp[1]) || (so != bp[1]))
 				continue;
-			
+
 			if (sp[2] != bp[2])
 				sp[1] = -1;
@@ -309,8 +309,8 @@
 		}
 	}
-	
+
 	if (cur_so)
 		resume_normal();
-	
+
 	console_flush(console);
 }
@@ -323,7 +323,7 @@
 {
 	int l = str_size(s);
-	
+
 	moveto(Rows - 2, ((Cols - l) >> 1) - 1);
-	
+
 	if (set)
 		putstr(s);
@@ -341,8 +341,8 @@
 {
 	suseconds_t timeout = fallrate;
-	
+
 	while (timeout > 0) {
 		cons_event_t event;
-		
+
 		if (!console_get_event_timeout(console, &event, &timeout))
 			break;
@@ -359,10 +359,10 @@
 	 * and increase speed.
 	 */
-	
+
 	if (timeleft <= 0) {
 		faster();
 		timeleft = fallrate;
 	}
-	
+
 	/*
 	 * Wait to see if there is any input. If so, take it and
@@ -371,19 +371,19 @@
 	 * make timeleft zero and return -1.
 	 */
-	
+
 	wchar_t c = 0;
-	
+
 	while (c == 0) {
 		cons_event_t event;
-		
+
 		if (!console_get_event_timeout(console, &event, &timeleft)) {
 			timeleft = 0;
 			return -1;
 		}
-		
+
 		if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
 			c = event.ev.key.c;
 	}
-	
+
 	return (int) c;
 }
@@ -395,15 +395,15 @@
 {
 	wchar_t c = 0;
-	
+
 	while (c == 0) {
 		cons_event_t event;
-		
+
 		if (!console_get_event(console, &event))
 			return -1;
-		
+
 		if (event.type == CEV_KEY && event.ev.key.type == KEY_PRESS)
 			c = event.ev.key.c;
 	}
-	
+
 	return (int) c;
 }
