summaryrefslogtreecommitdiff
path: root/test/checkers.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2020-01-03 23:12:23 +0100
committerMatthias Melcher <git@matthiasm.com>2020-01-03 23:12:23 +0100
commit5bb880dfa2e90ee713d2443ce4b6517a7b031a50 (patch)
tree166ff21c313ec295e10428f5090ca56477af0cfb /test/checkers.cxx
parent7e5d6df711b52760f3f613719c1501df7b10af48 (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/checkers.cxx')
-rw-r--r--test/checkers.cxx2
1 files changed, 2 insertions, 0 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