mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 19:16:44 +01:00
fix map drawing
This commit is contained in:
parent
b96edbfbce
commit
4cba98f8bc
2 changed files with 7 additions and 2 deletions
1
TODO
1
TODO
|
@ -1,6 +1,5 @@
|
||||||
- check if every gamestate is stable on every platform
|
- check if every gamestate is stable on every platform
|
||||||
- moar documentation
|
- moar documentation
|
||||||
- autodetect latencies on drawing when fading in menu
|
|
||||||
- control settings
|
- control settings
|
||||||
- video settings
|
- video settings
|
||||||
|
|
||||||
|
|
|
@ -111,10 +111,16 @@ void Map_Preload(struct Game *game) {
|
||||||
ALLEGRO_BITMAP *scaled =LoadFromCache(game, "table.png", al_get_display_width(game->display), al_get_display_height(game->display));
|
ALLEGRO_BITMAP *scaled =LoadFromCache(game, "table.png", al_get_display_width(game->display), al_get_display_height(game->display));
|
||||||
al_set_target_bitmap(game->map.map);
|
al_set_target_bitmap(game->map.map);
|
||||||
al_draw_bitmap(scaled, 0, 0 ,0);
|
al_draw_bitmap(scaled, 0, 0 ,0);
|
||||||
al_destroy_bitmap(scaled);
|
|
||||||
//ScaleBitmap(game->map.background, al_get_display_width(game->display), al_get_display_height(game->display), 0.5);
|
//ScaleBitmap(game->map.background, al_get_display_width(game->display), al_get_display_height(game->display), 0.5);
|
||||||
|
al_set_target_bitmap(scaled);
|
||||||
ScaleBitmap(game->map.map_bg, al_get_display_width(game->display), al_get_display_height(game->display), 0.5);
|
ScaleBitmap(game->map.map_bg, al_get_display_width(game->display), al_get_display_height(game->display), 0.5);
|
||||||
|
al_set_target_bitmap(game->map.map);
|
||||||
|
al_draw_bitmap(scaled, 0, 0 ,0);
|
||||||
|
al_set_target_bitmap(scaled);
|
||||||
ScaleBitmap(game->map.highlight, al_get_display_width(game->display), al_get_display_height(game->display), 0.5);
|
ScaleBitmap(game->map.highlight, al_get_display_width(game->display), al_get_display_height(game->display), 0.5);
|
||||||
|
al_set_target_bitmap(game->map.map);
|
||||||
|
al_draw_bitmap(scaled, 0, 0 ,0);
|
||||||
|
al_destroy_bitmap(scaled);
|
||||||
//al_draw_scaled_bitmap(game->map.background,0,0,al_get_bitmap_width(game->map.background),al_get_bitmap_height(game->map.background),0,0,al_get_display_width(game->display), al_get_display_height(game->display),0);
|
//al_draw_scaled_bitmap(game->map.background,0,0,al_get_bitmap_width(game->map.background),al_get_bitmap_height(game->map.background),0,0,al_get_display_width(game->display), al_get_display_height(game->display),0);
|
||||||
//al_draw_scaled_bitmap(game->map.map_bg,0,0,al_get_bitmap_width(game->map.map_bg),al_get_bitmap_height(game->map.map_bg),0,0,al_get_display_width(game->display), al_get_display_height(game->display),0);
|
//al_draw_scaled_bitmap(game->map.map_bg,0,0,al_get_bitmap_width(game->map.map_bg),al_get_bitmap_height(game->map.map_bg),0,0,al_get_display_width(game->display), al_get_display_height(game->display),0);
|
||||||
//al_draw_scaled_bitmap(game->map.highlight,0,0,al_get_bitmap_width(game->map.highlight),al_get_bitmap_height(game->map.highlight),0,0,al_get_display_width(game->display), al_get_display_height(game->display),0);
|
//al_draw_scaled_bitmap(game->map.highlight,0,0,al_get_bitmap_width(game->map.highlight),al_get_bitmap_height(game->map.highlight),0,0,al_get_display_width(game->display), al_get_display_height(game->display),0);
|
||||||
|
|
Loading…
Reference in a new issue