summaryrefslogtreecommitdiffstats
path: root/patches/tslib-1.0/generic/tests_clear_screen_at_end.diff
blob: 8e0a57141bb3703dc2e7a5d5781d049ffe65f5ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ts_test: clear screen on exit

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
---
# 20081124: wsa: sent upstream as RFC.

 tests/ts_calibrate.c |    1 +
 tests/ts_test.c      |    1 +
 2 files changed, 2 insertions(+)

Index: tests/ts_test.c
===================================================================
--- tests/ts_test.c.orig
+++ tests/ts_test.c
@@ -213,5 +213,6 @@ int main()
 		if (quit_pressed)
 			break;
 	}
+	fillrect (0, 0, xres - 1, yres - 1, 0);
 	close_framebuffer();
 }
Index: tests/ts_calibrate.c
===================================================================
--- tests/ts_calibrate.c.orig
+++ tests/ts_calibrate.c
@@ -235,6 +235,7 @@ int main()
 		i = -1;
 	}
 
+	fillrect (0, 0, xres - 1, yres - 1, 0);
 	close_framebuffer();
 	return i;
 }