mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Minor update to sigvis.
This commit is contained in:
@@ -1,2 +1 @@
|
||||
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.
|
||||
This is a simple library for visualizing signals. This readme will be updated later when the library stabilizes.
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user