From 435419cfe91eefa3a709af91f2ab172c3cbde022 Mon Sep 17 00:00:00 2001 From: richiesams Date: Wed, 14 Aug 2013 12:12:34 -0500 Subject: ZVISION: Modify ASCII velocity drawing to represent the actual code Velocity outside the working window is zero --- engines/zvision/events.cpp | 49 ++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 26 deletions(-) (limited to 'engines') 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) { -- cgit v1.2.3