summarylogtreecommitdiffstats
path: root/0000-TextWriter.patch
diff options
context:
space:
mode:
Diffstat (limited to '0000-TextWriter.patch')
-rw-r--r--0000-TextWriter.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/0000-TextWriter.patch b/0000-TextWriter.patch
new file mode 100644
index 000000000000..9b397517000e
--- /dev/null
+++ b/0000-TextWriter.patch
@@ -0,0 +1,21 @@
+diff -ra -U3 a/src/TextWriter.cpp b/src/TextWriter.cpp
+--- a/src/TextWriter.cpp 2016-10-14 15:43:47.264744000 -0500
++++ b/src/TextWriter.cpp 2016-10-14 15:52:09.558097860 -0500
+@@ -62,7 +62,7 @@
+ fontname = STRING(fontname << " " << in_size);
+ Pango::FontDescription* font_desc = new Pango::FontDescription(fontname);
+ Glib::RefPtr<Pango::Font> ret = Gdk::GL::Font::use_pango_font(*font_desc, 0, 128, list_start);
+- if (ret == 0)
++ if (!ret)
+ throw LinthesiaError("An error ocurred while trying to use use_pango_font() with "
+ "font '" + fontname + "'");
+
+@@ -100,7 +100,7 @@
+ glPopMatrix();
+
+ // TODO: Should probably delete these on shutdown.
+- //glDeleteLists(1000, 128);
++ glDeleteLists(1000, 128);
+
+ return tw;
+ }