In article <463B8E7A.12999.54E016@twegner.swbell.net>, "Tim Wegner" <twegner@swbell.net> writes:
Because the native PC screen pixel addressing has the origin in the upper left, but "max" and "min" are relative to a lower left origin.
OK, that's what I suspected, but I wanted to make sure it wasn't an error as I refactor.
You need to watch out because the origin-in-the-upper-left convention is probably ubiquitous, and I'm guessing your virtual window pixel addresses are different.
I'm refactoring the code to objects right now. I preserve existing behavior, but when I see something odd, I'll ask why the behavior is the way it is. Sometimes its a bug (like the sound orbit observation I posted yesterday), sometimes its just assumptions cooked into the existing code with no explanation. -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/>