From 5bb880dfa2e90ee713d2443ce4b6517a7b031a50 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 3 Jan 2020 23:12:23 +0100 Subject: Creating hires version of Checkers. PNGs are just scaled but should be replaced with crispier graphics from the original vector files. --- test/checkers.cxx | 2 ++ test/checkers_pieces.fl | 4 ++-- test/pixmaps/black_checker.png | Bin 4080 -> 14657 bytes test/pixmaps/black_checker_king.png | Bin 4437 -> 16902 bytes test/pixmaps/white_checker.png | Bin 4239 -> 17471 bytes test/pixmaps/white_checker_king.png | Bin 4733 -> 19883 bytes 6 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/checkers.cxx b/test/checkers.cxx index 8cc79739f..dcc67c6a9 100644 --- a/test/checkers.cxx +++ b/test/checkers.cxx @@ -875,6 +875,8 @@ void make_pieces() { png[which++] = new Fl_PNG_Image(NULL, (const unsigned char *)pixmaps_white_checker_png, sizeof(pixmaps_white_checker_png)); png[which++] = new Fl_PNG_Image(NULL, (const unsigned char *)pixmaps_black_checker_king_png, sizeof(pixmaps_black_checker_king_png)); png[which++] = new Fl_PNG_Image(NULL, (const unsigned char *)pixmaps_white_checker_king_png, sizeof(pixmaps_white_checker_king_png)); + for (int i = 0; i < which; i++) + png[i]->scale(png[i]->data_w()/2, png[i]->data_h()/2); } #define ISIZE 62 // old: 56 diff --git a/test/checkers_pieces.fl b/test/checkers_pieces.fl index b10c24b80..62e289419 100644 --- a/test/checkers_pieces.fl +++ b/test/checkers_pieces.fl @@ -26,7 +26,7 @@ comment {// // // Please report all bugs and problems to "fltk-bugs@fltk.org". // -} {selected in_source in_header +} {in_source in_header } data pixmaps_black_checker_png {public local filename {pixmaps/black_checker.png} @@ -35,7 +35,7 @@ data pixmaps_black_checker_png {public local filename {pixmaps/black_checker.png data pixmaps_white_checker_png {public local filename {pixmaps/white_checker.png} } -data pixmaps_black_checker_king_png {public local filename {pixmaps/black_checker_king.png} +data pixmaps_black_checker_king_png {selected public local filename {pixmaps/black_checker_king.png} } data pixmaps_white_checker_king_png {public local filename {pixmaps/white_checker_king.png} diff --git a/test/pixmaps/black_checker.png b/test/pixmaps/black_checker.png index 4cf65e019..0d466af5f 100644 Binary files a/test/pixmaps/black_checker.png and b/test/pixmaps/black_checker.png differ diff --git a/test/pixmaps/black_checker_king.png b/test/pixmaps/black_checker_king.png index 86bcf2eda..a1aba7b55 100644 Binary files a/test/pixmaps/black_checker_king.png and b/test/pixmaps/black_checker_king.png differ diff --git a/test/pixmaps/white_checker.png b/test/pixmaps/white_checker.png index 51270799a..55038f8f9 100644 Binary files a/test/pixmaps/white_checker.png and b/test/pixmaps/white_checker.png differ diff --git a/test/pixmaps/white_checker_king.png b/test/pixmaps/white_checker_king.png index 437ef5361..da41b439b 100644 Binary files a/test/pixmaps/white_checker_king.png and b/test/pixmaps/white_checker_king.png differ -- cgit v1.2.3