mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
small fixes
This commit is contained in:
parent
d9d78969dc
commit
f2adc2aff4
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue