Update.
[universe.git] / retina.cc
index 45975ba..4e591b1 100644 (file)
--- a/retina.cc
+++ b/retina.cc
@@ -1,17 +1,6 @@
 
-////////////////////////////////////////////////////////////////////////////////
-// This program is free software; you can redistribute it and/or              //
-// modify it under the terms of the GNU General Public License                //
-// version 2 as published by the Free Software Foundation.                    //
-//                                                                            //
-// This program is distributed in the hope that it will be useful, but        //
-// WITHOUT ANY WARRANTY; without even the implied warranty of                 //
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU          //
-// General Public License for more details.                                   //
-//                                                                            //
-// Written and (C) by François Fleuret                                        //
-// Contact <francois.fleuret@epfl.ch> for comments & bug reports              //
-////////////////////////////////////////////////////////////////////////////////
+// Written and (C) by Francois Fleuret
+// Contact <francois.fleuret@idiap.ch> for comments & bug reports
 
 #include "retina.h"
 
@@ -199,7 +188,7 @@ void Retina::raw_rectangle(unsigned char *image, int xmin, int ymin, int w, int
   }
 }
 
-void Retina::save_as_ppm(char *filename) {
+void Retina::save_as_ppm(const char *filename) {
   unsigned char *image = new unsigned char[_width * _height * 3];
 
 
@@ -282,7 +271,7 @@ void Retina::update_map() {
 }
 
 void Retina::draw_on_universe(SimpleWindow *window) {
-  window->color(1.0, 1.0, 1.0);
+  window->color(0.25, 0.25, 0.25);
   int xc = int(_eye_x), yc = int(_eye_y);
   window->draw_line(xc - _width/2, yc - _height/2, xc + _width/2, yc - _height/2);
   window->draw_line(xc + _width/2, yc - _height/2, xc + _width/2, yc + _height/2);