From 03539a98a543af89ab1ef7f2d27a1adc9675826c Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Tue, 4 Mar 2008 16:29:09 +0000 Subject: [PATCH] Legacy Tux Paint images (prior to Tux Paint supporting different colored backgrounds) would end up with arbitrary Eraser colors. Forcing it to always use white, which was the only background color in early versions of Tux Paint. --- docs/CHANGES.txt | 7 +++++++ src/tuxpaint.c | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index 7b1ae0cae..ad6eb854e 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -35,6 +35,13 @@ $Id$ + Added dependency on SDL_Pango. TOYAMA Shin-ichi + * Bug Fixes + --------- + * Legacy Tux Paint images (prior to Tux Paint supporting different + colored backgrounds) would end up with arbitrary Eraser colors. + Forcing it to always use white, which was the only background color + in early versions of Tux Paint. + 2008.February.25 (0.9.19) * New Localizations: diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 2fa4d8301..81eba072c 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - June 14, 2002 - February 28, 2008 + June 14, 2002 - March 4, 2008 $Id$ */ @@ -10939,6 +10939,12 @@ static void load_starter_id(char *saved_id) fclose(fi); } + else + { + canvas_color_r = 255; + canvas_color_g = 255; + canvas_color_b = 255; + } free(rname); }