Mercurial > hg > xemacs-beta
comparison src/scrollbar.c @ 367:a4f53d9b3154 r21-1-13
Import from CVS: tag r21-1-13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:01:07 +0200 |
parents | 70ad99077275 |
children | cc15677e0335 |
comparison
equal
deleted
inserted
replaced
366:83d76f480a59 | 367:a4f53d9b3154 |
---|---|
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-dependant SHORT size? -- kkm */ | 875 machine-dependent 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 |