Skip to content
Snippets Groups Projects
Commit 5193fb92 authored by Shay Ohayon's avatar Shay Ohayon
Browse files

Type casting correctiongs

parent 4af9b8fe
No related branches found
No related tags found
No related merge requests found
......@@ -138,19 +138,19 @@ void ChannelSelector::refreshButtonBoundaries()
{
parameterButtons[i]->setBounds(columnWidth/2 + offsetLR +
columnWidth*((i)%nColumns),
floor((i)/nColumns)*rowHeight+offsetUD + topOffset,
floor(double(i)/nColumns)*rowHeight+offsetUD + topOffset,
columnWidth, rowHeight);
if (isNotSink)
{
recordButtons[i]->setBounds(columnWidth/2 + offsetLR +
columnWidth*((i)%nColumns) - getDesiredWidth(),
floor((i)/nColumns)*rowHeight+offsetUD + topOffset,
floor(double(i)/nColumns)*rowHeight+offsetUD + topOffset,
columnWidth, rowHeight);
audioButtons[i]->setBounds(columnWidth/2 + offsetLR +
columnWidth*((i)%nColumns) -
getDesiredWidth()*2,
floor((i)/nColumns)*rowHeight+offsetUD + topOffset,
floor(double(i)/nColumns)*rowHeight+offsetUD + topOffset,
columnWidth, rowHeight);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment