--- 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;