comparison src/dispnew.c @ 57808:a1c4ff636947

(margin_glyphs_to_reserve): Don't use ncols_scale_factor.
author Kim F. Storm <storm@cua.dk>
date Sun, 31 Oct 2004 00:05:18 +0000
parents 6b028bf60b4e
children 59945307b86b 7a0245dd1848 e24e2e78deda
comparison
equal deleted inserted replaced
57807:4b6ff733caa8 57808:a1c4ff636947
577 if (NUMBERP (margin)) 577 if (NUMBERP (margin))
578 { 578 {
579 int width = XFASTINT (w->total_cols); 579 int width = XFASTINT (w->total_cols);
580 double d = max (0, XFLOATINT (margin)); 580 double d = max (0, XFLOATINT (margin));
581 d = min (width / 2 - 1, d); 581 d = min (width / 2 - 1, d);
582 n = (int) ((double) total_glyphs / width * d) * w->ncols_scale_factor; 582 n = (int) ((double) total_glyphs / width * d);
583 } 583 }
584 else 584 else
585 n = 0; 585 n = 0;
586 586
587 return n; 587 return n;