[oe-commits] Marco Cavallini : xinput-calibrator-0.5.0/0002-gui_x11. cpp-Load-font-fixed-when-9x15-fails-in-GuiCa.patch: Load font fixed when 9x15 fails in GuiCalibratorX11

git version control git at git.openembedded.org
Thu Jan 21 19:03:49 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: 4dfad05b9977338b12169fa31b6077db8b224e71
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4dfad05b9977338b12169fa31b6077db8b224e71

Author: Marco Cavallini <m.cavallini at koansoftware.com>
Date:   Thu Jan 21 17:29:46 2010 +0100

xinput-calibrator-0.5.0/0002-gui_x11.cpp-Load-font-fixed-when-9x15-fails-in-GuiCa.patch: Load font fixed when 9x15 fails in GuiCalibratorX11

---

 ...-Load-font-fixed-when-9x15-fails-in-GuiCa.patch |   32 ++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/recipes/xinput-calibrator/xinput-calibrator-0.5.0/0002-gui_x11.cpp-Load-font-fixed-when-9x15-fails-in-GuiCa.patch b/recipes/xinput-calibrator/xinput-calibrator-0.5.0/0002-gui_x11.cpp-Load-font-fixed-when-9x15-fails-in-GuiCa.patch
new file mode 100644
index 0000000..08f4309
--- /dev/null
+++ b/recipes/xinput-calibrator/xinput-calibrator-0.5.0/0002-gui_x11.cpp-Load-font-fixed-when-9x15-fails-in-GuiCa.patch
@@ -0,0 +1,32 @@
+From aaf549ecacc05bd5ddd29bb345cae471ce3ab48c Mon Sep 17 00:00:00 2001
+From: Marco Cavallini <m.cavallini at koansoftware.com>
+Date: Thu, 21 Jan 2010 16:46:18 +0100
+Subject: [PATCH] gui_x11.cpp: Load font fixed when 9x15 fails in GuiCalibratorX11
+
+
+Signed-off-by: Marco Cavallini <m.cavallini at koansoftware.com>
+---
+ gui_x11.cpp |    7 +++++--
+ 1 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/gui_x11.cpp b/gui_x11.cpp
+index bc483cd..02ddc73 100644
+--- a/gui_x11.cpp
++++ b/gui_x11.cpp
+@@ -112,8 +112,11 @@ GuiCalibratorX11::GuiCalibratorX11(Calibrator* calibrator0)
+     // Load font and get font information structure
+     font_info = XLoadQueryFont(display, "9x15");
+     if (font_info == NULL) {
+-        XCloseDisplay(display);
+-        throw std::runtime_error("Unable to open 9x15 font");
++        font_info = XLoadQueryFont(display, "fixed");
++        if (font_info == NULL) {
++            XCloseDisplay(display);
++            throw std::runtime_error("Unable to open 9x15 neither fixed font");
++        }
+     }
+ 
+     // Compute absolute circle centers
+-- 
+1.6.3.3
+





More information about the Openembedded-commits mailing list