mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 09:27:39 +01:00
Change various positions and dimensions to integer from double
This includes note heights, note positions, contents height for streamviews, positions of tracks. It makes zero sense to think of these as having potentially fractional positions. In addition, fractional note heights and positions lead to numerous errors drawing MIDI stuff at the pixel level.
This commit is contained in:
parent
ae913acacf
commit
1ed9876446
14 changed files with 49 additions and 47 deletions
|
|
@ -69,11 +69,11 @@ public:
|
|||
//bool can_change_layer_display() const { return false; } // revert this change for now. Although stacked view is weirdly implemented wrt the "scroomer", it is still necessary to be able to manage layered regions.
|
||||
void redisplay_track ();
|
||||
|
||||
double contents_height() const {
|
||||
return (child_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2);
|
||||
int contents_height() const {
|
||||
return child_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2;
|
||||
}
|
||||
|
||||
double y_position () const;
|
||||
int y_position () const;
|
||||
|
||||
RegionView* create_region_view (std::shared_ptr<ARDOUR::Region>, bool, bool);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue