From: Matthijs W. <mat...@wi...> - 2011-10-24 21:02:31
|
Hi Lawrence, What is the purpose of this code? Just for clarity: What you are doing is the following: aspect : width / height then when aspect < 1 you do: h := height w := aspect * height. The last evaluates to: w := (width / height) * height, which is the same as width * (height / height) The same goes for when aspect > 0. So in the end you always end up with h equals heigth and w equals width. In short, your code has no purpose. Or am I missing something? Regards Matthijs. From: Lawrence Schlachter Sent: Monday, October 24, 2011 6:02 PM To: mat...@wi... Subject: Re: [Lazarus-ccr-general] Question Matthijs, My original code does not have that typo in it. I am evaluating the aspect for its value in reference to 1. I still cannot get the code to differentiate between portrait and landscape view. That is my question,can any code differentiate between those views in Lazarus? The code works fine in Delphi. Thanks for any comments. LSchlachter LS...@at... |