X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=retina.cc;h=4e591b1949319f2ac61753b65a2ff726a74d37ea;hb=4754eda0991874c388d8a93517d579ed447d81e9;hp=45975bac418d81fa592dc245b3f40ebdfaa9bbb1;hpb=ba46b057f3e2613a86f2dea7fa8022990482c735;p=universe.git diff --git a/retina.cc b/retina.cc index 45975ba..4e591b1 100644 --- 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 for comments & bug reports // -//////////////////////////////////////////////////////////////////////////////// +// Written and (C) by Francois Fleuret +// Contact 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);