Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Mark getPointColor as const.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 3 Dec 2010 08:40:51 +0000 (09:40 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 3 Dec 2010 08:40:51 +0000 (09:40 +0100)
DrawingWindow.cpp
DrawingWindow.h

index f68f43b..dac4246 100644 (file)
@@ -607,7 +607,7 @@ void DrawingWindow::drawTextBg(int x, int y, const std::string &text, int flags)
  *
  * \see setColor(unsigned int), setBgColor(unsigned int)
  */
  *
  * \see setColor(unsigned int), setBgColor(unsigned int)
  */
-unsigned int DrawingWindow::getPointColor(int x, int y)
+unsigned int DrawingWindow::getPointColor(int x, int y) const
 {
     return image->pixel(x, y);
 }
 {
     return image->pixel(x, y);
 }
index e44ea3b..c38d9bd 100644 (file)
@@ -64,7 +64,7 @@ public:
     void drawTextBg(int x, int y, const char *text, int flags = 0);
     void drawTextBg(int x, int y, const std::string &text, int flags = 0);
 
     void drawTextBg(int x, int y, const char *text, int flags = 0);
     void drawTextBg(int x, int y, const std::string &text, int flags = 0);
 
-    unsigned int getPointColor(int x, int y);
+    unsigned int getPointColor(int x, int y) const;
 
     bool waitMousePress(int &x, int &y, int &button,
                         unsigned long time = ULONG_MAX);
 
     bool waitMousePress(int &x, int &y, int &button,
                         unsigned long time = ULONG_MAX);