include/pixmap.h
branchpyrit
changeset 96 9eb71e76c7fd
parent 95 ca7d4c665531
child 98 64638385798a
--- a/include/pixmap.h	Sat May 10 14:29:37 2008 +0200
+++ b/include/pixmap.h	Thu May 15 00:07:25 2008 +0200
@@ -67,7 +67,7 @@
 
 	void setData(Float *afdata, int aw, int ah)
 		{ fdata = afdata; w = aw; h = ah; };
-	Colour get(int x, int y) { return data[y*w + x]; };
+	const Colour &get(int x, int y) const { return data[y*w + x]; };
 	const int &getWidth() const { return w; };
 	const int &getHeight() const { return h; };
 	Float*& getFloatData() { return fdata; };