changeset 2077:953a04517b95

don't use monospace with the text window dialog anymore It was nice when this dialog was used to view source, but it doesn't matter for viewing html bugs. If anything, it takes up space.
author corvid <corvid@lavabit.com>
date Fri, 10 Jun 2011 02:00:52 +0000
parents 859808e6d518
children 251b58748bfa
files src/dialog.cc
diffstat 1 files changed, 1 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialog.cc	Fri Jun 10 01:50:26 2011 +0000
+++ b/src/dialog.cc	Fri Jun 10 02:00:52 2011 +0000
@@ -111,7 +111,6 @@
 void a_Dialog_text_window(const char *txt, const char *title)
 {
    int wh = prefs.height, ww = prefs.width, bh = 30;
-// Font *textfont = font(prefs.font_monospace, 0);
 
    Fl_Window *window = new Fl_Window(ww, wh, title ? title : "Dillo text");
    Fl_Group::current(0);
@@ -121,17 +120,7 @@
     buf->text(txt);
     Fl_Text_Display *td = new Fl_Text_Display(0,0,ww, wh-bh);
     td->buffer(buf);
-
-#if 0
-PORT1.3
-    if (textfont)
-       td->textfont(textfont);
-    td->textsize((int) rint(13.0 * prefs.font_factor));
-    fltk::setfont(td->textfont(), td->textsize());
-#else
-    td->textfont(FL_COURIER);
-    td->textsize((int) rint(13.0 * prefs.font_factor));
-#endif
+    td->textsize((int) rint(14.0 * prefs.font_factor));
 
     /* enable wrapping lines; text uses entire width of window */
     td->wrap_mode(true, false);