• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A generic touchscreen calibration program for X.Org


Commit MetaInfo

Revision3bd11a0480f9920140fa0509cf53d5a5c2bad01c (tree)
Time2010-01-11 05:16:56
AuthorTias Guns <tias@ulys...>
CommiterTias Guns

Log Message

minor cleanups

Change Summary

Incremental Difference

--- a/gui_gtkmm.cpp
+++ b/gui_gtkmm.cpp
@@ -39,7 +39,7 @@ const int clock_radius = 50;
3939 const int clock_line_width = 10;
4040
4141 // Text printed on screen
42-const int font_size = 18;
42+const int font_size = 16;
4343 const int help_lines = 4;
4444 const std::string help_text[help_lines] = {
4545 "Touchscreen Calibration",
@@ -124,7 +124,7 @@ bool CalibrationArea::on_expose_event(GdkEventExpose *event)
124124
125125 double x = (display_width - text_width) / 2;
126126 double y = (display_height - text_height) / 2 - 60;
127- cr->set_line_width(3);
127+ cr->set_line_width(2);
128128 cr->rectangle(x - 10, y - (help_lines*text_height) - 10,
129129 text_width + 20, (help_lines*text_height) + 20);
130130
--- a/main_common.hpp
+++ b/main_common.hpp
@@ -23,6 +23,7 @@
2323 #include <cstring>
2424 #include <stdio.h>
2525 #include <stdlib.h>
26+#include <stdexcept>
2627
2728 #include <X11/Xlib.h>
2829 #include <X11/extensions/XInput.h>
--- a/main_gtkmm.cpp
+++ b/main_gtkmm.cpp
@@ -20,7 +20,6 @@
2020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121 * THE SOFTWARE.
2222 */
23-#include <stdexcept>
2423
2524 // Must be before Xlib stuff
2625 #include <gtkmm/main.h>