small fixes

This commit is contained in:
Sebastian Krzyszkowiak 2012-03-01 01:46:45 +01:00
parent d9d78969dc
commit f2adc2aff4
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}
}

View file

@ -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);