Skip to content

Commit

Permalink
move piano roll menu to menu bar
Browse files Browse the repository at this point in the history
  • Loading branch information
stakira committed Oct 10, 2023
1 parent a2186da commit 1a26426
Show file tree
Hide file tree
Showing 2 changed files with 262 additions and 268 deletions.
3 changes: 3 additions & 0 deletions OpenUtau/Controls/WaveformImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public override void Render(DrawingContext context) {
private WriteableBitmap? GetBitmap() {
int desiredWidth = (int)Bounds.Width;
int desiredHeight = (int)Bounds.Height;
if (desiredWidth == 0 || desiredHeight == 0) {
return null;
}
if (bitmap == null || bitmap.Size.Width < desiredWidth) {
bitmap?.Dispose();
var size = new PixelSize(desiredWidth, desiredHeight);
Expand Down
Loading

0 comments on commit 1a26426

Please sign in to comment.