include/pixmap.h
branchpyrit
changeset 90 f6a72eb99631
parent 88 f7edb3b90816
child 94 4c8abb8977dc
--- a/include/pixmap.h	Tue Apr 29 13:56:29 2008 +0200
+++ b/include/pixmap.h	Tue Apr 29 23:31:08 2008 +0200
@@ -53,8 +53,8 @@
 	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 int &getWidth() { return w; };
-	const int &getHeight() { return h; };
+	const int &getWidth() const { return w; };
+	const int &getHeight() const { return h; };
 	Float*& getFloatData() { return fdata; };
 	unsigned char *getCharData() const;
 	int writePNG(const char *fname) const;