Changeset 0f86024 in git


Ignore:
Timestamp:
27/01/14 00:46:22 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
c7627d4
Parents:
ba8f8d3
Message:

src/gfxcore.cc: Try to work around measuring line redraw issues on
Microsoft Windows by redrawing the whole window, which doesn't
seem to be measurably slower.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rba8f8d3 r0f86024  
     1Mon Jan 27 00:44:30 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * src/gfxcore.cc: Try to work around measuring line redraw issues on
     4          Microsoft Windows by redrawing the whole window, which doesn't
     5          seem to be measurably slower.
     6
    17Mon Jan 27 00:21:30 GMT 2014  Olly Betts <olly@survex.com>
    28
  • src/gfxcore.cc

    rba8f8d3 r0f86024  
    13621362void GfxCore::RefreshLine(const Point &a, const Point &b, const Point &c)
    13631363{
     1364#ifdef __WXMSW__
     1365    (void)a;
     1366    (void)b;
     1367    (void)c;
     1368    // FIXME: We get odd redraw artifacts if we just update the line, and
     1369    // redrawing the whole scene doesn't actually seem to be measurably
     1370    // slower.  That may not be true with software rendering though...
     1371    ForceRefresh();
     1372#else
    13641373    // Best of all might be to copy the window contents before we draw the
    13651374    // line, then replace each time we redraw.
     
    14101419    d -= MARGIN;
    14111420    RefreshRect(wxRect(l, d, r - l, u - d), false);
     1421#endif
    14121422}
    14131423
Note: See TracChangeset for help on using the changeset viewer.