diff options
author | Neil <nyamatongwe@gmail.com> | 2014-05-03 20:21:13 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-05-03 20:21:13 +1000 |
commit | 97ae63fa3914ac9894a319c0c75eeeffe96b16e9 (patch) | |
tree | 7cc80911f2b6338a9ea84744577c535c16346c2d /src/XPM.cxx | |
parent | 850baf30484384711aa410d3596531f49c15e1ac (diff) | |
download | scintilla-mirror-97ae63fa3914ac9894a319c0c75eeeffe96b16e9.tar.gz |
Replacing the int-based constructors for Point and PRectangle with FromInts
static methods as there were too many failures with mixed types and not-quite
matching types.
Diffstat (limited to 'src/XPM.cxx')
-rw-r--r-- | src/XPM.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx index b3c9b338f..c2b308acb 100644 --- a/src/XPM.cxx +++ b/src/XPM.cxx @@ -47,7 +47,7 @@ ColourDesired XPM::ColourFromCode(int ch) const { void XPM::FillRun(Surface *surface, int code, int startX, int y, int x) { if ((code != codeTransparent) && (startX != x)) { - PRectangle rc(startX, y, x, y+1); + PRectangle rc = PRectangle::FromInts(startX, y, x, y + 1); surface->FillRectangle(rc, ColourFromCode(code)); } } |