Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Oct 17, 2021
1 parent 52ad460 commit 91556c4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Eto.Gtk/Forms/Printing/PrintDocumentHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ private void Control_DrawPage(object o, Gtk.DrawPageArgs args)
context.Clip();
var ctl = _control.GetContainerWidget();
context.Translate(0, -pageNumber * height);
#if !GTK2
ctl.Draw(context);
#endif
context.Restore();
}

Expand Down
1 change: 1 addition & 0 deletions src/Eto.Mac/Eto.XamMac2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<DefineConstants>$(DefineConstants);OSX;DESKTOP;XAMMAC;XAMMAC2;UNIFIED</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefaultItemExcludes>build\*</DefaultItemExcludes>
<NoWarn>CA1416</NoWarn>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Eto.Mac/Forms/Printing/PrintDocumentHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public override CGRect RectForPage(nint pageNumber)
size.Width = (nfloat)Math.Min(size.Width, paperSize.Width);
size.Height = (nfloat)Math.Min(size.Height, paperSize.Height);
var location = new CGPoint(0, 0);
location.Y = Math.Max(0, _preferredSize.Height - paperSize.Height * pageNumber);
location.Y = (nfloat)Math.Max(0, _preferredSize.Height - paperSize.Height * pageNumber);
return new CGRect(location, size);
}

Expand Down
2 changes: 2 additions & 0 deletions test/Eto.Test.Mac/Eto.Test.XamMac2.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<PackageSigningKey>3rd Party Mac Developer Installer</PackageSigningKey>
<MonoBundlingExtraArgs>--nowarn:2006 --nowarn:0176</MonoBundlingExtraArgs>
<DefineConstants>XAMMAC;XAMMAC2</DefineConstants>
<SupportedOSPlatformVersion>10.15</SupportedOSPlatformVersion>
<NoWarn>CA1416</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="$(TargetFramework) == 'xamarinmac20'">
Expand Down
2 changes: 1 addition & 1 deletion test/Eto.Test.Mac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>10.14</string>
<string>10.15</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSRequiresAquaSystemAppearance</key>
Expand Down

0 comments on commit 91556c4

Please sign in to comment.