Changeset 83 for trunk/Lucide/SOURCE


Ignore:
Timestamp:
Jul 21, 2006, 3:21:08 PM (15 years ago)
Author:
Eugene Romanenko
Message:

Drawing fixes (closes #69)

File:
1 edited

Legend:

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

    r81 r83  
    10721072            drawSelection( currentpage, hpsBuffer, &rclDraw );
    10731073            drawFound( currentpage, hpsBuffer, &rclDraw );
    1074 
    1075             BlitGraphicsBuffer( hps, hpsBuffer, &rcl );
    1076         }
    1077     }
    1078     else {
    1079         BlitGraphicsBuffer( hps, hpsBuffer, &rcl );
    1080     }
     1074        }
     1075    }
     1076    BlitGraphicsBuffer( hps, hpsBuffer, &rcl );
    10811077    WinEndPaint( hps );
    10821078}
     
    11351131                    xPos = ( cxClient - w ) / 2;
    11361132                }
    1137                 RECTL rclPage = { xPos, 0, width + xPos, height };
     1133                RECTL rclPage = { 0 };
     1134                LuRectangle lr = { 0, 0, pagesizes[ pg ].x, pagesizes[ pg ].y };
     1135                docPosToWinPos( pg, &lr, &rclPage );
    11381136                RECTL rclDraw = { 0 };
    11391137                if ( WinIntersectRect( hab, &rclDraw, r, &rclPage ) )
Note: See TracChangeset for help on using the changeset viewer.