From ce6e4b52401b29e0f34888250b8c8cbb5821bc4d Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 3 May 2014 20:21:13 +1000 Subject: 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. --- src/XPM.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/XPM.cxx') 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)); } } -- cgit v1.2.3