app: better defaults for image dimension.

Current defaults are from another time. Acceptable defaults could be
common screen resolutions. 1366x768 is apparently the most common
(according to various stats on the web), but since we target advanced
graphics artists, let's go for 1920x1080, which is the second most
common resolution, also known as Full HD.
For unstable builds, let's have at least one odd number, uncommon ratio
and higher values, encouraging tests with less common numbers and bigger
images. I chose 2001x1984. Feel free to update to any other funky values
following these "unstable" rules.
This commit is contained in:
Jehan 2016-11-23 22:25:43 +01:00
parent 391908079a
commit 7a60fd0d7b
1 changed files with 13 additions and 9 deletions

View File

@ -27,17 +27,21 @@
#define GIMP_TEMPLATE_PARAM_COPY_FIRST (1 << (8 + G_PARAM_USER_SHIFT))
/* The default image aspect ratio is the golden mean. We use
* two adjacent fibonacci numbers for the unstable series and
* some less odd values for the stable version.
*/
#ifdef GIMP_UNSTABLE
#define GIMP_DEFAULT_IMAGE_WIDTH 610
#define GIMP_DEFAULT_IMAGE_HEIGHT 377
/* Uncommon ratio, with at least one odd value, to encourage testing
* GIMP with unusual numbers.
* It also has to be a higher resolution, to push GIMP a little further
* in tests. */
#define GIMP_DEFAULT_IMAGE_WIDTH 2001
#define GIMP_DEFAULT_IMAGE_HEIGHT 1984
#else
#define GIMP_DEFAULT_IMAGE_WIDTH 640
#define GIMP_DEFAULT_IMAGE_HEIGHT 400
/* 1366x768 is the most common screen resolution in 2016.
* 1920x1080 is the second most common.
* Since GIMP targets advanced graphics artists, let's go for the
* highest common dimension.
*/
#define GIMP_DEFAULT_IMAGE_WIDTH 1920
#define GIMP_DEFAULT_IMAGE_HEIGHT 1080
#endif