diff options
author | hobbs <hobbs> | 2000-03-31 09:24:26 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2000-03-31 09:24:26 (GMT) |
commit | d0234726eb4b759870dace2f272efee107024394 (patch) | |
tree | e97af0ad0371bd7cbd7c2c4ca58ee0a393407a74 /win/tkWinScrlbr.c | |
parent | b6e815a78d530ea2de673fd5df7b83e08bcfca25 (diff) | |
download | tk-d0234726eb4b759870dace2f272efee107024394.zip tk-d0234726eb4b759870dace2f272efee107024394.tar.gz tk-d0234726eb4b759870dace2f272efee107024394.tar.bz2 |
* win/tkWinDialog.c: added unicode-aware open/save file dialogs
* win/tkWinFont.c (TkpFontPkgInit): move private ref to platformId
to TkWinGetPlatformId
* win/tkWinMenu.c (SetDefaults): moved private use of versionInfo
to TkWinGetPlatformId and removed all code for
(versionInfo.dwMajorVersion < 4) (== Win32s)
* win/tkWinX.c:
* win/tkWin32Dll.c: moved TkWinGetPlatformId to tkWinX.c
* win/tkWinInit.c: added TkWinXInit to TkpInit to ensure that its
called for static Windows shells. [Bug: 3647]
* win/tkWinInt.h:
* win/tkWinX.c:
* win/tkWinDraw.c (SetUpGraphicsPort):
* win/tkWinScrlbr.c (UpdateScrollbar): removed use of tkpIsWin32s
* win/tkWinInt.h (TkWinDCState struct): added bkmode value
* win/tkWinDraw.c (TkWinGetDrawableDC, et al): added support for
properly transparent dashed lines on Windows. [Bug: 4617]
Diffstat (limited to 'win/tkWinScrlbr.c')
-rw-r--r-- | win/tkWinScrlbr.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/win/tkWinScrlbr.c b/win/tkWinScrlbr.c index f888679..a6bb09a 100644 --- a/win/tkWinScrlbr.c +++ b/win/tkWinScrlbr.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinScrlbr.c,v 1.4 2000/01/13 02:07:27 hobbs Exp $ + * RCS: @(#) $Id: tkWinScrlbr.c,v 1.5 2000/03/31 09:24:27 hobbs Exp $ */ #include "tkWinInt.h" @@ -177,11 +177,7 @@ UpdateScrollbar(scrollPtr) scrollInfo.nMin = 0; scrollInfo.nMax = MAX_SCROLL; thumbSize = (scrollPtr->info.lastFraction - scrollPtr->info.firstFraction); - if (tkpIsWin32s) { - scrollInfo.nPage = 0; - } else { - scrollInfo.nPage = ((UINT) (thumbSize * (double) MAX_SCROLL)) + 1; - } + scrollInfo.nPage = ((UINT) (thumbSize * (double) MAX_SCROLL)) + 1; if (thumbSize < 1.0) { scrollInfo.nPos = (int) ((scrollPtr->info.firstFraction / (1.0-thumbSize)) |