Subject: ite_cc.c patches
To: None <amiga-dev@sun-lamp.cs.berkeley.edu>
From: Ty Sarna <tsarna@endicor.com>
List: amiga-dev
Date: 06/13/1994 04:00:29
Here are two patches for dev/ite_cc.c. The first fixes a bad assumption
that boldsmear will always be one. The second adjusts the value of
ite_default_width for boldsmear before using it. Previously with a
default of 640 you'd get a 79 column doisplay, while many programs
require a minimul 80 columns. This way, with a default of 640 and a font
with boldsmear of one, you'll get a 641 pixel/80 column wide display.
*** ite_cc.c.orig Sun Jun 12 21:40:26 1994
--- ite_cc.c Sun Jun 12 22:06:58 1994
***************
*** 187,194 ****
*/
cci->view = views[0].view;
! /* -1 for bold. */
! ip->cols = (cci->view->display.width - 1) / ip->ftwidth;
ip->rows = cci->view->display.height / ip->ftheight;
/*
--- 187,194 ----
*/
cci->view = views[0].view;
! ip->cols = (cci->view->display.width - kernel_font_boldsmear)
! / ip->ftwidth; /* leave room for bold. */
ip->rows = cci->view->display.height / ip->ftheight;
/*
***************
*** 276,282 ****
wsz.x = ite_default_x;
wsz.y = ite_default_y;
! wsz.width = ite_default_width;
wsz.height = ite_default_height;
wsz.depth = ite_default_depth;
--- 276,282 ----
wsz.x = ite_default_x;
wsz.y = ite_default_y;
! wsz.width = ite_default_width + kernel_font_boldsmear;
wsz.height = ite_default_height;
wsz.depth = ite_default_depth;
------------------------------------------------------------------------------