Changeset 98 for trunk/Lucide


Ignore:
Timestamp:
Aug 12, 2006, 1:47:55 PM (15 years ago)
Author:
Eugene Romanenko
Message:

Draw fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/docViewer.cpp

    r91 r98  
    741741        WinEnableWindow( hWndHscroll, (BOOL)( sHscrollMax != 0 ) );
    742742
     743        VScrollStep = 1;
    743744        if ( continuous )
    744745        {
    745746            realVscrollMax = __max( 0, fullheight - cyClient );
    746             VScrollStep = LINE_HEIGHT;
    747747            ULONG ssize = realVscrollMax / VScrollStep;
    748748            while ( ssize > 32000 ) {
     
    752752
    753753            sVscrollMax = (SHORT)ssize;
     754            if ( realVscrollMax > ( sVscrollMax * VScrollStep ) ) {
     755                sVscrollMax += 1;
     756            }
    754757        }
    755758        else {
    756759            realVscrollMax = sVscrollMax = (SHORT)__max( 0, height - cyClient );
    757             VScrollStep = 1;
    758760        }
    759761        sVscrollPos = __min( sVscrollPos, sVscrollMax );
Note: See TracChangeset for help on using the changeset viewer.