From 9c450c12f2406a7946efb56d9f3506b1046aa6dd Mon Sep 17 00:00:00 2001 From: William Kendrick Date: Mon, 20 Sep 2004 05:49:10 +0000 Subject: [PATCH] Got it to properly pay attention to image's starter's orientation when loading. --- src/tuxpaint.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index e4af03ca1..473d049fc 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -12807,9 +12807,6 @@ void load_starter(char * img_id) } } - starter_mirrored = 0; - starter_flipped = 0; - free(dirname); } @@ -12860,6 +12857,7 @@ void mirror_starter(void) int x, y; SDL_Rect src, dest; + /* Mirror overlay: */ orig = img_starter; @@ -12926,6 +12924,7 @@ void flip_starter(void) int x, y; SDL_Rect src, dest; + /* Flip overlay: */ orig = img_starter; @@ -12941,7 +12940,7 @@ void flip_starter(void) src.h = 1; dest.x = 0; - dest.y = orig->h - x - 1; + dest.y = orig->h - y - 1; SDL_BlitSurface(orig, &src, img_starter, &dest); }