diff options
| author | mitchell <unknown> | 2018-05-25 13:33:38 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2018-05-25 13:33:38 -0400 |
| commit | 43566e4211e18057662ff5d8c8d3996b73090d43 (patch) | |
| tree | 0b501aa992e9ccdcc36b25d10d72a51785a9a515 /curses/ScintillaCurses.cxx | |
| parent | 7a4fd484cc8229d3518039c82d950b4fa7f673cb (diff) | |
| download | scintilla-mirror-43566e4211e18057662ff5d8c8d3996b73090d43.tar.gz | |
Backport: Modernize Platform.h (3) - update Surface to delete WidthChar, use size_t for Polygon and delete the standard copy and assignment methods.
Backport of changeset 6940:89fd29243232.
Diffstat (limited to 'curses/ScintillaCurses.cxx')
| -rw-r--r-- | curses/ScintillaCurses.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/curses/ScintillaCurses.cxx b/curses/ScintillaCurses.cxx index 21c7a8c02..1a04912a1 100644 --- a/curses/ScintillaCurses.cxx +++ b/curses/ScintillaCurses.cxx @@ -279,7 +279,8 @@ public: * Line markers that Scintilla would normally draw as polygons are handled in * `DrawLineMarker()`. */ - void Polygon(Point *pts, int npts, ColourDesired fore, ColourDesired back) { + void Polygon(Point *pts, size_t npts, ColourDesired fore, + ColourDesired back) { wattr_set(win, 0, term_color_pair(back, COLOR_WHITE), NULL); // invert if (pts[0].y < pts[npts - 1].y) // up arrow mvwaddstr(win, pts[0].y, pts[npts - 1].x + 1, "▲"); @@ -447,8 +448,6 @@ public: if (!UTF8IsTrailByte((unsigned char)s[i])) width += grapheme_width(s + i); return width; } - /** Returns 1 since curses characters always have a width of 1. */ - XYPOSITION WidthChar(Font &font_, char ch) { return 1; } /** Returns 0 since curses characters have no ascent. */ XYPOSITION Ascent(Font &font_) { return 0; } /** Returns 0 since curses characters have no descent. */ |
