-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue that caused the waveform to draw flat across 1/3 of the screen #1
base: master
Are you sure you want to change the base?
Conversation
…lly in landscape mode
Removed the status bar in IB and that fixes the waveform in landscape! |
Hey, Thanks for working on this. I'm looking over your changes. I don't think using Also I don't want to get rid of Actually a while ago I discovered a There's still an issue. The oscilloscope is now drawing three cycles of sampling but the edges of the samples don't quite line up. If you play around with it you'll see there are discontinuities in the curve at around 1/3 and 2/3 of the way across. Thanks again for your help. S |
Thanks for your swift reply, ill check out the new version and look at a solution that renders this correctly then! If nothing else you should remove the status bar from the XIB used for the oscilloscope view though, since this will stop the waveform from drawing full screen in landscape orientations. Cheers, David. |
The wScale variable was the cause of the the waveform not drawing correctly, I also updated the drawRect method to use the provided rect as bounds for drawing.
The waveform still doesn't draw to full width in landscape orientation though!