Properly scale height

This commit is contained in:
Matthias Neeracher 2007-12-25 19:44:49 +00:00
parent f503e03cc3
commit deb08552d7

View File

@ -262,8 +262,8 @@ VLMusicElement sSemi2Accidental[12][12] = {
NSSize sz = [scroll contentSize];
delete fLayout;
fLayout = new VLLayout(*[self song], sz.width / fDisplayScale);
sz.height = std::max(2, fLayout->NumSystems())*kSystemH;
fLayout = new VLLayout(*[self song], sz.width / fDisplayScale);
sz.height = std::max(2, fLayout->NumSystems())*kSystemH*fDisplayScale;
NSSize boundsSz = {sz.width / fDisplayScale, sz.height / fDisplayScale};