ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/init.C
(Generate patch)

Comparing rxvt-unicode/src/init.C (file contents):
Revision 1.31 by pcg, Sun Feb 22 08:09:38 2004 UTC vs.
Revision 1.33 by pcg, Sun Feb 22 10:37:54 2004 UTC

664#ifdef HAVE_SCROLLBARS 664#ifdef HAVE_SCROLLBARS
665 setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle], 665 setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle],
666 rs[Rs_scrollBar_thickness]); 666 rs[Rs_scrollBar_thickness]);
667#endif 667#endif
668 668
669 TermWin.fontset = new rxvt_fontset (this);
670 TermWin.fontset->populate (rs[Rs_font]);
671 TermWin.fwidth = TermWin.fontset->base_font ()->width;
672 TermWin.fheight = TermWin.fontset->base_font ()->height;
673 TermWin.fbase = TermWin.fontset->base_font ()->ascent;
674
675#ifdef XTERM_REVERSE_VIDEO 669#ifdef XTERM_REVERSE_VIDEO
676 /* this is how xterm implements reverseVideo */ 670 /* this is how xterm implements reverseVideo */
677 if (Options & Opt_reverseVideo) 671 if (Options & Opt_reverseVideo)
678 { 672 {
679 if (!rs[Rs_color + Color_fg]) 673 if (!rs[Rs_color + Color_fg])
802void 796void
803rxvt_term::set_locale (const char *locale) 797rxvt_term::set_locale (const char *locale)
804{ 798{
805#if HAVE_XSETLOCALE || HAVE_SETLOCALE 799#if HAVE_XSETLOCALE || HAVE_SETLOCALE
806 free (this->locale); 800 free (this->locale);
807 this->locale = rxvt_strdup (setlocale (LC_CTYPE, "")); 801 this->locale = rxvt_strdup (setlocale (LC_CTYPE, locale));
808 SET_LOCALE (this->locale); 802 SET_LOCALE (this->locale);
809 mbstate.reset (); 803 mbstate.reset ();
810#endif 804#endif
811#if HAVE_NL_LANGINFO 805#if HAVE_NL_LANGINFO
812 free (codeset); 806 free (codeset);
1137 } 1131 }
1138 1132
1139 /* grab colors before netscape does */ 1133 /* grab colors before netscape does */
1140 Get_Colours (); 1134 Get_Colours ();
1141 1135
1142 change_font (1, NULL); 1136 if (!change_font (rs[Rs_font]))
1137 {
1138 fprintf (stderr, "unable to load a base font, please provide one using -fn fontname\n");
1139 destroy ();
1140 return;
1141 }
1142
1143 window_calc (0, 0); 1143 window_calc (0, 0);
1144 old_width = szHint.width; 1144 old_width = szHint.width;
1145 old_height = szHint.height; 1145 old_height = szHint.height;
1146 1146
1147 /* parent window - reverse video so we can see placement errors 1147 /* parent window - reverse video so we can see placement errors

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines