From 9eecf5ab4eb7d94900a9e105271bb07866d4ec7f Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Mon, 20 Sep 2004 06:02:57 +0000 Subject: [PATCH] Trying to finish up starter mirror/flip. Background flip-on-load broken! (Also, need to worry about keeping track of flips and mirroring for Undo/Redo!) --- src/tuxpaint.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 473d049fc..be8825e9e 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -12689,7 +12689,8 @@ void load_starter_id(char * saved_id) fgets(starter_id, sizeof(starter_id), fi); starter_id[strlen(starter_id) - 1] = '\0'; - fscanf(fi, "%d %d", &starter_mirrored, &starter_flipped); + fscanf(fi, "%d", &starter_mirrored); + fscanf(fi, "%d", &starter_flipped); fclose(fi); } @@ -12927,6 +12928,8 @@ void flip_starter(void) /* Flip overlay: */ + printf("Flipping starter\n"); + orig = img_starter; img_starter = duplicate_surface(orig); @@ -12979,8 +12982,14 @@ void flip_starter(void) } else { + printf("Couldn't duplicate background!\n"); + img_starter_bkgd = orig; } } + else + { + printf("No background to flip\n"); + } }