Matt Finnicum : riched20: Rewrite of scrolling and some redrawing code.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Sep 11 06:05:03 CDT 2006


Module: wine
Branch: master
Commit: abecd9e393925e008449a80ec14682790b29042c
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=abecd9e393925e008449a80ec14682790b29042c

Author: Matt Finnicum <mattfinn at gmail.com>
Date:   Fri Sep  8 16:37:25 2006 -0500

riched20: Rewrite of scrolling and some redrawing code.

Replaces duplicated scrolling code with re-usable functions.
Removes excessive boundary checking on scroll code, since that's done
in the scrollbar control anyways.
Properly separates repaint calls based on what has changed.
Send EN_UPDATE and EN_CHANGE at the right places.
Only call EnsureVisible on changes, not all repaints.

---

 dlls/riched20/caret.c   |   12 +--
 dlls/riched20/editor.c  |  178 +++++++++++-----------------------------
 dlls/riched20/editor.h  |   14 ++-
 dlls/riched20/editstr.h |    2 
 dlls/riched20/paint.c   |  208 ++++++++++++++++++++++++++---------------------
 5 files changed, 181 insertions(+), 233 deletions(-)

Diff:   http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=abecd9e393925e008449a80ec14682790b29042c



More information about the wine-cvs mailing list