A generic touchscreen calibration program for X.Org
Revisión | 3bd11a0480f9920140fa0509cf53d5a5c2bad01c (tree) |
---|---|
Tiempo | 2010-01-11 05:16:56 |
Autor | Tias Guns <tias@ulys...> |
Commiter | Tias Guns |
minor cleanups
@@ -39,7 +39,7 @@ const int clock_radius = 50; | ||
39 | 39 | const int clock_line_width = 10; |
40 | 40 | |
41 | 41 | // Text printed on screen |
42 | -const int font_size = 18; | |
42 | +const int font_size = 16; | |
43 | 43 | const int help_lines = 4; |
44 | 44 | const std::string help_text[help_lines] = { |
45 | 45 | "Touchscreen Calibration", |
@@ -124,7 +124,7 @@ bool CalibrationArea::on_expose_event(GdkEventExpose *event) | ||
124 | 124 | |
125 | 125 | double x = (display_width - text_width) / 2; |
126 | 126 | double y = (display_height - text_height) / 2 - 60; |
127 | - cr->set_line_width(3); | |
127 | + cr->set_line_width(2); | |
128 | 128 | cr->rectangle(x - 10, y - (help_lines*text_height) - 10, |
129 | 129 | text_width + 20, (help_lines*text_height) + 20); |
130 | 130 |
@@ -23,6 +23,7 @@ | ||
23 | 23 | #include <cstring> |
24 | 24 | #include <stdio.h> |
25 | 25 | #include <stdlib.h> |
26 | +#include <stdexcept> | |
26 | 27 | |
27 | 28 | #include <X11/Xlib.h> |
28 | 29 | #include <X11/extensions/XInput.h> |
@@ -20,7 +20,6 @@ | ||
20 | 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
21 | 21 | * THE SOFTWARE. |
22 | 22 | */ |
23 | -#include <stdexcept> | |
24 | 23 | |
25 | 24 | // Must be before Xlib stuff |
26 | 25 | #include <gtkmm/main.h> |