diff options
Diffstat (limited to 'puzzle.cpp')
-rw-r--r-- | puzzle.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ #include <stdlib.h> #include <string> -#include <FL/Fl_JPEG_Image.H> +#include <FL/Fl_PNG_Image.H> #include <utility> #include <memory> @@ -32,7 +32,7 @@ static void find_path_to_picture(std::string& path, int number) { path = "resources/tucan/" + std::to_string(number / puzzles_per_side) + - std::to_string(number % puzzles_per_side) + ".jpg"; + std::to_string(number % puzzles_per_side) + ".png"; } void GameParams::NextUntestedPuzzles() @@ -67,7 +67,7 @@ void GameParams::NextUntestedPuzzles() standard_puzzle_coordinates[i].y)); tmp_puzzle->sequence_number = idx_random_puzzle; find_path_to_picture(tmp_puzzle->path, tmp_puzzle->sequence_number); - Fl_JPEG_Image *img = new Fl_JPEG_Image(tmp_puzzle->path.c_str()); + Fl_PNG_Image *img = new Fl_PNG_Image(tmp_puzzle->path.c_str()); // TODO check fails img->fail(); tmp_puzzle->image(img); tmp_puzzle->callback(press_button_callback, this); |