|
![](/i/fill.gif) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
clipka wrote:
> John VanSickle <evi### [at] hotmail com> wrote:
>> I think that this is an issue on which there is no substitute for the
>> user knowing exactly what he/she is doing.
>
> If the SDL provided a way to specify the intended aspect ratio, then it would be
> an easy thing to warn the user if they specify a resolution with a different
> aspect ratio.
>
>
>
#declare aspect_ratio = 4/3;
#if (abs (image_width / image_height - aspect_ratio) < 1e-6)
#warning concat ("Invalid aspect ratio: expected ",
str (aspect_ratio, 1, 3),
" got ",
str (image_width / image_height, 1, 3),
"\n")
#end
- --
mailto:jeb### [at] free fr
http://jeberger.free.fr
Jabber: jeb### [at] jabber fr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAknFOTQACgkQd0kWM4JG3k8swQCfe2qGwqqj0vdT0qqhYmnWfRx8
eLMAoJcutxGtP2zta7AbU/TkJ+Up84eG
=ICi9
-----END PGP SIGNATURE-----
Post a reply to this message
|
![](/i/fill.gif) |