Creating hires version of Checkers.

PNGs are just scaled but should be replaced with crispier graphics from the original vector files.
This commit is contained in:
Matthias Melcher 2020-01-03 23:12:23 +01:00
parent 7e5d6df711
commit 5bb880dfa2
6 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 19 KiB