mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
This is in line with what freedesktop.org calls Xaw3d. And this is in preparation to update libXaw3d to the freedesktop.org maintained version. The reason we are doing this is the Slackware version is unmaintained. PR: 285528 Exp-run by: antoine
24 lines
914 B
C
24 lines
914 B
C
*** Box.c~ 1996-10-15 10:41:18.000000000 -0400
|
|
--- Box.c 2007-04-21 14:12:44.000000000 -0400
|
|
***************
|
|
*** 353,360 ****
|
|
else {
|
|
width = preferred_width;
|
|
do { /* find some width big enough to stay within this height */
|
|
! width *= 2;
|
|
! if (width > constraint->width) width = constraint->width;
|
|
DoLayout(w, width, 0, &preferred_width, &preferred_height, FALSE);
|
|
} while (preferred_height > constraint->height &&
|
|
width < constraint->width);
|
|
--- 353,363 ----
|
|
else {
|
|
width = preferred_width;
|
|
do { /* find some width big enough to stay within this height */
|
|
! if (width > constraint->width/2) /* avoid short int overflow */
|
|
! width = constraint->width;
|
|
! else
|
|
! width *= 2;
|
|
!
|
|
DoLayout(w, width, 0, &preferred_width, &preferred_height, FALSE);
|
|
} while (preferred_height > constraint->height &&
|
|
width < constraint->width);
|