mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 00:05:07 +00:00
LibAudio/Piano: Replace floats with doubles
We should default to double-precision so that clients can make the choice to use float or double.
This commit is contained in:
parent
d55d2b2794
commit
aa149b9330
5 changed files with 30 additions and 30 deletions
|
@ -46,7 +46,7 @@ WaveEditor::~WaveEditor()
|
|||
{
|
||||
}
|
||||
|
||||
int WaveEditor::sample_to_y(float percentage) const
|
||||
int WaveEditor::sample_to_y(double percentage) const
|
||||
{
|
||||
double portion_of_half_height = percentage * ((frame_inner_rect().height() - 1) / 2.0);
|
||||
double y = (frame_inner_rect().height() / 2.0) + portion_of_half_height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue