comparison src/scrollbar.c @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents a4f53d9b3154
children 8626e4521993
comparison
equal deleted inserted replaced
370:bd866891f083 371:cc15677e0335
870 else 870 else
871 hscroll = XINT (value); 871 hscroll = XINT (value);
872 872
873 /* Can't allow this out of set-window-hscroll's acceptable range. */ 873 /* Can't allow this out of set-window-hscroll's acceptable range. */
874 /* #### What hell on the earth this code limits scroll size to the 874 /* #### What hell on the earth this code limits scroll size to the
875 machine-dependent SHORT size? -- kkm */ 875 machine-dependant SHORT size? -- kkm */
876 if (hscroll < 0) 876 if (hscroll < 0)
877 hscroll = 0; 877 hscroll = 0;
878 else if (hscroll >= (1 << (SHORTBITS - 1)) - 1) 878 else if (hscroll >= (1 << (SHORTBITS - 1)) - 1)
879 hscroll = (1 << (SHORTBITS - 1)) - 1; 879 hscroll = (1 << (SHORTBITS - 1)) - 1;
880 880