From f2adc2aff4bf4cacc8db83b4988f4163a8ad27bd Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Thu, 1 Mar 2012 01:46:45 +0100 Subject: [PATCH] small fixes --- src/about.c | 2 +- src/main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/about.c b/src/about.c index 7810b29..544a9fd 100644 --- a/src/about.c +++ b/src/about.c @@ -14,8 +14,8 @@ void About_Draw(struct Game *game) { game->about.x+=0.00025; if (game->about.x>1) { UnloadGameState(game); - game->gamestate = GAMESTATE_LOADING; game->loadstate = GAMESTATE_MENU; + LoadGameState(game); } } diff --git a/src/main.c b/src/main.c index f6cb486..69750bb 100644 --- a/src/main.c +++ b/src/main.c @@ -128,9 +128,9 @@ void ScaleBitmap(ALLEGRO_BITMAP* source, int width, int height, float val) { return; } int x, y; - for (y = 0; y < height; y++) { + for (y = 0; y <= height; y++) { float pixy = ((float)y / height) * al_get_bitmap_height(source); - for (x = 0; x < width; x++) { + for (x = 0; x <= width; x++) { float pixx = ((float)x / width) * al_get_bitmap_width(source); ALLEGRO_COLOR a = al_get_pixel(source, pixx-val, pixy-val); ALLEGRO_COLOR b = al_get_pixel(source, pixx+val, pixy-val);