POV-Ray : Newsgroups : povray.general : Feature request: Various SDL / Command Line Stuff : Re: Feature request: Various SDL / Command Line Stuff Server Time
30 Jul 2024 16:15:02 EDT (-0400)
  Re: Feature request: Various SDL / Command Line Stuff  
From: "Jérôme M. Berger"
Date: 21 Mar 2009 15:00:06
Message: <49c53936@news.povray.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

clipka wrote:
> John VanSickle <evi### [at] hotmailcom> 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] freefr
http://jeberger.free.fr
Jabber: jeb### [at] jabberfr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAknFOTQACgkQd0kWM4JG3k8swQCfe2qGwqqj0vdT0qqhYmnWfRx8
eLMAoJcutxGtP2zta7AbU/TkJ+Up84eG
=ICi9
-----END PGP SIGNATURE-----


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.