diff options
Diffstat (limited to 'src/systems/mapping.cpp')
-rw-r--r-- | src/systems/mapping.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/systems/mapping.cpp b/src/systems/mapping.cpp index 5b63ded..120a27a 100644 --- a/src/systems/mapping.cpp +++ b/src/systems/mapping.cpp | |||
@@ -48,7 +48,11 @@ void MappingSystem::render(Texture& texture) | |||
48 | TILE_WIDTH, | 48 | TILE_WIDTH, |
49 | TILE_HEIGHT}; | 49 | TILE_HEIGHT}; |
50 | 50 | ||
51 | texture.blit(mappable.getTileset(), std::move(src), std::move(dst)); | 51 | game_.getRenderer().blit( |
52 | mappable.getTileset(), | ||
53 | texture, | ||
54 | std::move(src), | ||
55 | std::move(dst)); | ||
52 | } | 56 | } |
53 | } | 57 | } |
54 | 58 | ||
@@ -67,7 +71,11 @@ void MappingSystem::render(Texture& texture) | |||
67 | TILE_WIDTH, | 71 | TILE_WIDTH, |
68 | TILE_HEIGHT}; | 72 | TILE_HEIGHT}; |
69 | 73 | ||
70 | texture.blit(mappable.getFont(), std::move(src), std::move(dst)); | 74 | game_.getRenderer().blit( |
75 | mappable.getFont(), | ||
76 | texture, | ||
77 | std::move(src), | ||
78 | std::move(dst)); | ||
71 | } | 79 | } |
72 | } | 80 | } |
73 | } | 81 | } |