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

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.39 by pcg, Sat Feb 21 22:14:00 2004 UTC vs.
Revision 1.41 by pcg, Sun Feb 22 08:28:36 2004 UTC

262 create_windows (argc, argv); 262 create_windows (argc, argv);
263 263
264 init_xlocale (); 264 init_xlocale ();
265 265
266 scr_reset (); /* initialize screen */ 266 scr_reset (); /* initialize screen */
267#ifdef RXVT_GRAPHICS
268 Gr_reset (); /* reset graphics */
269#endif
270 267
271#if 0 268#if 0
272 XSynchronize (display->display, True); 269 XSynchronize (display->display, True);
273#endif 270#endif
274 271
718 * init = 1 - initialize 715 * init = 1 - initialize
719 * 716 *
720 * fontname == FONT_UP - switch to bigger font 717 * fontname == FONT_UP - switch to bigger font
721 * fontname == FONT_DN - switch to smaller font 718 * fontname == FONT_DN - switch to smaller font
722 */ 719 */
723void 720bool
724rxvt_term::change_font (int init, const char *fontname) 721rxvt_term::change_font (const char *fontname)
725{} 722{
723 if (fontname == FONT_UP)
724 {
725 // TODO
726 }
727 else if (fontname == FONT_DN)
728 {
729 // TODO
730 }
731 else
732 {
733 rxvt_fontset *fs = new rxvt_fontset (this);
726 734
727void 735 if (fs && fs->populate (fontname))
736 {
737 delete TermWin.fontset;
738 TermWin.fontset = fs;
739 TermWin.fwidth = fs->base_font ()->width;
740 TermWin.fheight = fs->base_font ()->height;
741 TermWin.fbase = fs->base_font ()->ascent;
742
743 // TODO: screen needs to be told about new fonts
744
745 return true;
746 }
747 }
748
749 return false;
750}
751
752bool
728rxvt_term::font_up_down (int n, int direction) 753rxvt_term::font_up_down (int n, int direction)
729{} 754{
755 return false;
756}
730 757
731/*----------------------------------------------------------------------*/ 758/*----------------------------------------------------------------------*/
732/*----------------------------------------------------------------------*/ 759/*----------------------------------------------------------------------*/
733/* xterm sequences - title, iconName, color (exptl) */ 760/* xterm sequences - title, iconName, color (exptl) */
734void 761void
995 0, TermWin_TotalWidth (), menuBar_TotalHeight ()); 1022 0, TermWin_TotalWidth (), menuBar_TotalHeight ());
996 1023
997 XMoveResizeWindow (display->display, TermWin.vt, window_vt_x, 1024 XMoveResizeWindow (display->display, TermWin.vt, window_vt_x,
998 window_vt_y, TermWin_TotalWidth (), 1025 window_vt_y, TermWin_TotalWidth (),
999 TermWin_TotalHeight ()); 1026 TermWin_TotalHeight ());
1000#ifdef RXVT_GRAPHICS
1001 if (old_height)
1002 Gr_Resize (old_width - szHint.base_width,
1003 old_height - szHint.base_height);
1004#endif
1005 scr_clear (); 1027 scr_clear ();
1006#ifdef XPM_BACKGROUND 1028#ifdef XPM_BACKGROUND
1007 resize_pixmap (); 1029 resize_pixmap ();
1008#endif 1030#endif
1009 1031

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines