Commit 671958a 1 parent 1ad1827 commit 671958a Copy full SHA for 671958a
File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11
11
#define MAP_WIDTH 32
12
12
#define MAP_HEIGHT 32
13
13
#define MAP_SLOTS 16
14
- #define MAP_TILES_ACROSS 20
15
- #define MAP_TILES_DOWN 20
14
+ #define MAP_TILES_ACROSS 16
15
+ #define MAP_TILES_DOWN 16
16
16
#define MAP_SCROLL_BORDER 0.4
17
17
#define MAP_SCROLL_SPEED 5
18
18
#define TICK_DURATION_MS 50
Original file line number Diff line number Diff line change @@ -861,7 +861,8 @@ void config_game_gfx_update(Gamep g)
861
861
// Now convert that to pixels
862
862
//
863
863
double visible_game_map_w = (double ) TILE_WIDTH * MAP_TILES_ACROSS;
864
- double visible_game_map_h = (double ) TILE_HEIGHT * (MAP_TILES_DOWN / ratio);
864
+ double visible_game_map_h = (double ) TILE_HEIGHT * ceil (MAP_TILES_DOWN / ratio);
865
+
865
866
//
866
867
// Compensate for any additional pixels the rounding of the terminal cells loses
867
868
//
@@ -871,6 +872,11 @@ void config_game_gfx_update(Gamep g)
871
872
visible_game_map_w *= pixel_rounding_w_fixup;
872
873
visible_game_map_h *= pixel_rounding_h_fixup;
873
874
875
+ //
876
+ // For now use a square map, ignoring the above
877
+ //
878
+ visible_game_map_h = visible_game_map_w;
879
+
874
880
game_pix_width_set (g, visible_game_map_w);
875
881
game_pix_height_set (g, visible_game_map_h);
876
882
You can’t perform that action at this time.
0 commit comments