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:
Paul Davis 2025-06-02 19:28:10 -06:00
parent ae913acacf
commit 1ed9876446
14 changed files with 49 additions and 47 deletions

View file

@ -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);