Skip to content

Commit

Permalink
- Fix "Startup" edgecase
Browse files Browse the repository at this point in the history
  • Loading branch information
Smurf-IV committed Dec 17, 2024
1 parent 45322ef commit dc546d3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,10 @@ protected virtual void OnFinishDelegate(object? sender, EventArgs? e) =>
// Get value from button spec passing inheritance redirector
Image? baseImage = ButtonSpec.GetImage(_redirector, state);

float dpiFactor = _controller?.Target.FactorDpiX ?? 1f;
return (baseImage != null)
? CommonHelper.ScaleImageForSizedDisplay(baseImage, baseImage.Width * _controller!.Target.FactorDpiX,
baseImage.Height * _controller!.Target.FactorDpiY)
? CommonHelper.ScaleImageForSizedDisplay(baseImage, baseImage.Width * dpiFactor,
baseImage.Height * dpiFactor)
: null;
}

Expand Down

0 comments on commit dc546d3

Please sign in to comment.