diff options
| author | Matthias Melcher <git@matthiasm.com> | 2020-01-03 23:12:23 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2020-01-03 23:12:23 +0100 |
| commit | 5bb880dfa2e90ee713d2443ce4b6517a7b031a50 (patch) | |
| tree | 166ff21c313ec295e10428f5090ca56477af0cfb /test | |
| parent | 7e5d6df711b52760f3f613719c1501df7b10af48 (diff) | |
Creating hires version of Checkers.
PNGs are just scaled but should be replaced with crispier graphics from the original vector files.
Diffstat (limited to 'test')
| -rw-r--r-- | test/checkers.cxx | 2 | ||||
| -rw-r--r-- | test/checkers_pieces.fl | 4 | ||||
| -rw-r--r-- | test/pixmaps/black_checker.png | bin | 4080 -> 14657 bytes | |||
| -rw-r--r-- | test/pixmaps/black_checker_king.png | bin | 4437 -> 16902 bytes | |||
| -rw-r--r-- | test/pixmaps/white_checker.png | bin | 4239 -> 17471 bytes | |||
| -rw-r--r-- | 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 Binary files differindex 4cf65e019..0d466af5f 100644 --- a/test/pixmaps/black_checker.png +++ b/test/pixmaps/black_checker.png diff --git a/test/pixmaps/black_checker_king.png b/test/pixmaps/black_checker_king.png Binary files differindex 86bcf2eda..a1aba7b55 100644 --- a/test/pixmaps/black_checker_king.png +++ b/test/pixmaps/black_checker_king.png diff --git a/test/pixmaps/white_checker.png b/test/pixmaps/white_checker.png Binary files differindex 51270799a..55038f8f9 100644 --- a/test/pixmaps/white_checker.png +++ b/test/pixmaps/white_checker.png diff --git a/test/pixmaps/white_checker_king.png b/test/pixmaps/white_checker_king.png Binary files differindex 437ef5361..da41b439b 100644 --- a/test/pixmaps/white_checker_king.png +++ b/test/pixmaps/white_checker_king.png |
