diff options
Diffstat (limited to 'src/renderer.cpp')
-rw-r--r-- | src/renderer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp index b6a9b4a..724e297 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp | |||
@@ -114,9 +114,12 @@ Renderer::Renderer() | |||
114 | loadTextureFromFile("../res/title0.png", titles_[0]); | 114 | loadTextureFromFile("../res/title0.png", titles_[0]); |
115 | SDL_QueryTexture(titles_[0].get(), nullptr, nullptr, &titleWidths_[0], &titleHeights_[0]); | 115 | SDL_QueryTexture(titles_[0].get(), nullptr, nullptr, &titleWidths_[0], &titleHeights_[0]); |
116 | 116 | ||
117 | loadTextureFromFile("../res/title3.png", titles_[1]); | 117 | loadTextureFromFile("../res/title1.png", titles_[1]); |
118 | SDL_QueryTexture(titles_[1].get(), nullptr, nullptr, &titleWidths_[1], &titleHeights_[1]); | 118 | SDL_QueryTexture(titles_[1].get(), nullptr, nullptr, &titleWidths_[1], &titleHeights_[1]); |
119 | 119 | ||
120 | loadTextureFromFile("../res/title3.png", titles_[2]); | ||
121 | SDL_QueryTexture(titles_[2].get(), nullptr, nullptr, &titleWidths_[2], &titleHeights_[2]); | ||
122 | |||
120 | font_ = font_ptr(TTF_OpenFont("../res/softsquare.ttf", 45)); | 123 | font_ = font_ptr(TTF_OpenFont("../res/softsquare.ttf", 45)); |
121 | if (!font_) { | 124 | if (!font_) { |
122 | throw ttf_error(); | 125 | throw ttf_error(); |