diff options
author | richiesams | 2013-08-14 12:12:34 -0500 |
---|---|---|
committer | richiesams | 2013-08-14 12:12:34 -0500 |
commit | 435419cfe91eefa3a709af91f2ab172c3cbde022 (patch) | |
tree | 179f0bc206d26a6283607a4c1fda31aace7053e6 /engines | |
parent | 4e827b4dda458813dce650545b6f9fb923c514f4 (diff) | |
download | scummvm-rg350-435419cfe91eefa3a709af91f2ab172c3cbde022.tar.gz scummvm-rg350-435419cfe91eefa3a709af91f2ab172c3cbde022.tar.bz2 scummvm-rg350-435419cfe91eefa3a709af91f2ab172c3cbde022.zip |
ZVISION: Modify ASCII velocity drawing to represent the actual code
Velocity outside the working window is zero
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/events.cpp | 49 |
1 files changed, 23 insertions, 26 deletions
diff --git a/engines/zvision/events.cpp b/engines/zvision/events.cpp index 68fa81ede3..ca96f52457 100644 --- a/engines/zvision/events.cpp +++ b/engines/zvision/events.cpp @@ -121,37 +121,34 @@ void ZVision::onMouseMove(const Common::Point &pos) { // Graph of the function governing rotation velocity: // - // |--------------- working window -----------------| - // ^ |--------| + // |---------------- working window ------------------| + // ^ |---------| // | | - // +Max velocity | rotation screen edge offset _____________________ - // | / - // | / - // | / - // | / - // | / - // | / - // | / - // | / - // | / - // Zero velocity |______________________________ ______________________________/____________________________________> - // | Position -> / - // | / - // | / - // | / - // | / - // | / - // | / - // | / - // | / - // -Max velocity |_____________________/ + // +Max velocity | rotation screen edge offset + // | /| + // | / | + // | / | + // | / | + // | / | + // | / | + // | / | + // | / | + // | / | + // Zero velocity |______________________________ ______________________________/_________|__________________________> + // | Position -> | / + // | | / + // | | / + // | | / + // | | / + // | | / + // | | / + // | | / + // | | / + // -Max velocity | |/ // | // | // ^ - // NOTE: RenderManger uses the inverse of velocity (ms/pixel instead of pixels/ms) because it allows you to accumulate whole - // pixels 'steps' instead of rounding pixels every frame - if (_workingWindow.contains(pos)) { RenderTable::RenderState renderState = _renderManager->getRenderTable()->getRenderState(); if (renderState == RenderTable::PANORAMA) { |