Commit ecf34e45 authored by David Reid's avatar David Reid

Minor update to sigvis.

parent 12ccfb3a
This is a simple library for visualizing signals. You have a screen, which is made up of any number of channels. Each
channel has a sample rate. The screen has an update rate.
\ No newline at end of file
This is a simple library for visualizing signals. This readme will be updated later when the library stabilizes.
\ No newline at end of file
......@@ -160,6 +160,9 @@ dtk_bool32 msigvis_window_event_handler(dtk_event* pEvent)
{
if (pEvent->mouseWheel.delta > 0) {
pScreen->zoomX = pScreen->zoomX * ( 2*pEvent->mouseWheel.delta);
if (pScreen->zoomX > 10000.0f) {
pScreen->zoomX = 10000.0f;
}
} else {
pScreen->zoomX = pScreen->zoomX / (-2*pEvent->mouseWheel.delta);
if (pScreen->zoomX < 0.000001f) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment