minor changes

master
Zaafar Ahmed 6 years ago
parent c2574d4de5
commit 4a74dda3eb
  1. 6
      ClickableTransparentOverlay/ImGuiController.cs
  2. 2
      ClickableTransparentOverlay/NativeMethods.cs

@ -370,11 +370,7 @@ namespace ClickableTransparentOverlay
this.pipeline.Dispose(); this.pipeline.Dispose();
this.mainResourceSet.Dispose(); this.mainResourceSet.Dispose();
this.fontTextureResourceSet.Dispose(); this.fontTextureResourceSet.Dispose();
this.ClearCachedImageResources();
foreach (IDisposable resource in this.ownedResources)
{
resource.Dispose();
}
} }
/// <summary> /// <summary>

@ -79,7 +79,7 @@ namespace ClickableTransparentOverlay
private int top; private int top;
private int bottom; private int bottom;
public static Margins FromRectangle(System.Drawing.Rectangle rectangle) public static Margins FromRectangle(Rectangle rectangle)
{ {
var margins = new Margins var margins = new Margins
{ {

Loading…
Cancel
Save