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

Comparing rxvt-unicode/src/screen.C (file contents):
Revision 1.417 by root, Mon May 28 16:40:03 2012 UTC vs.
Revision 1.420 by root, Mon Jun 4 15:18:52 2012 UTC

161{ 161{
162 int tsize = sizeof (text_t) * ncol; 162 int tsize = sizeof (text_t) * ncol;
163 int rsize = sizeof (rend_t) * ncol; 163 int rsize = sizeof (rend_t) * ncol;
164 164
165 // we assume that rend_t size is a sufficient alignment 165 // we assume that rend_t size is a sufficient alignment
166 // factor for tetx_t and line_t values, and we only 166 // factor for text_t and line_t values, and we only
167 // need to adjust tsize. 167 // need to adjust tsize.
168 tsize = (tsize + sizeof (rend_t) - 1); 168 tsize = (tsize + sizeof (rend_t) - 1);
169 tsize -= tsize % sizeof (rend_t); 169 tsize -= tsize % sizeof (rend_t);
170 170
171 int all_rows = total_rows + nrow + nrow; 171 int all_rows = total_rows + nrow + nrow;
236 scr_alloc (); 236 scr_alloc ();
237 237
238 if (!prev_row_buf) 238 if (!prev_row_buf)
239 { 239 {
240 /* 240 /*
241 * first time called so just malloc everything: don't rely on realloc 241 * first time called (or after scr_release) so just malloc everything: don't rely on realloc
242 */ 242 */
243 top_row = 0; 243 top_row = 0;
244 term_start = 0; 244 term_start = 0;
245 245
246 memset (charsets, 'B', sizeof (charsets)); 246 memset (charsets, 'B', sizeof (charsets));
426 tt_winch (); 426 tt_winch ();
427 427
428 HOOK_INVOKE ((this, HOOK_RESET, DT_END)); 428 HOOK_INVOKE ((this, HOOK_RESET, DT_END));
429} 429}
430 430
431/* ------------------------------------------------------------------------- */
432/*
433 * Free everything. That way malloc debugging can find leakage.
434 */
435void ecb_cold 431void ecb_cold
436rxvt_term::scr_release () NOTHROW 432rxvt_term::scr_release () NOTHROW
437{ 433{
438 free (chunk); 434 free (chunk); chunk = 0; row_buf = 0;
439 free (tabs); 435 free (tabs); tabs = 0;
440} 436}
441 437
442/* ------------------------------------------------------------------------- */ 438/* ------------------------------------------------------------------------- */
443/* 439/*
444 * Hard/Soft reset 440 * Hard/Soft reset
446void ecb_cold 442void ecb_cold
447rxvt_term::scr_poweron () 443rxvt_term::scr_poweron ()
448{ 444{
449 scr_release (); 445 scr_release ();
450 446
451 row_buf = 0;
452 tabs = 0;
453 prev_nrow = prev_ncol = 0; 447 prev_nrow = prev_ncol = 0;
454 rvideo_mode = false; 448 rvideo_mode = false;
455 scr_soft_reset (); 449 scr_soft_reset ();
456 scr_reset (); 450 scr_reset ();
457 451
2536 bool transparent = false; 2530 bool transparent = false;
2537 2531
2538#ifdef HAVE_BG_PIXMAP 2532#ifdef HAVE_BG_PIXMAP
2539 if (bg_pixmap != None) 2533 if (bg_pixmap != None)
2540 { 2534 {
2541# ifdef ENABLE_TRANSPARENCY 2535# if ENABLE_TRANSPARENCY
2542 if (bg_flags & BG_IS_TRANSPARENT) 2536 if (bg_flags & BG_IS_TRANSPARENT)
2543 { 2537 {
2544 XSetWindowBackgroundPixmap (dpy, parent, bg_pixmap); 2538 XSetWindowBackgroundPixmap (dpy, parent, bg_pixmap);
2545 XSetWindowBackgroundPixmap (dpy, vt, ParentRelative); 2539 XSetWindowBackgroundPixmap (dpy, vt, ParentRelative);
2546 2540
3532 3526
3533 XSendEvent (dpy, rq.requestor, False, 0L, (XEvent *)&ev); 3527 XSendEvent (dpy, rq.requestor, False, 0L, (XEvent *)&ev);
3534} 3528}
3535 3529
3536/* ------------------------------------------------------------------------- */ 3530/* ------------------------------------------------------------------------- */
3537#ifdef USE_XIM 3531#if USE_XIM
3538void ecb_cold 3532void ecb_cold
3539rxvt_term::im_set_position (XPoint &pos) NOTHROW 3533rxvt_term::im_set_position (XPoint &pos) NOTHROW
3540{ 3534{
3541 XWindowAttributes xwa; 3535 XWindowAttributes xwa;
3542 3536

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines