mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-21 13:20:11 +00:00
Merge issue #40 fix
This commit is contained in:
parent
da4a6498f9
commit
a785812c81
10 changed files with 32 additions and 33 deletions
|
@ -10,9 +10,9 @@
|
|||
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
|
||||
<RootNamespace>MSFSPopoutPanelManager.ArduinoAgent</RootNamespace>
|
||||
<Platforms>x64</Platforms>
|
||||
<Version>3.4.3.0911</Version>
|
||||
<AssemblyVersion>3.4.3.0911</AssemblyVersion>
|
||||
<FileVersion>3.4.3.0911</FileVersion>
|
||||
<Version>3.4.4.0923</Version>
|
||||
<AssemblyVersion>3.4.4.0923</AssemblyVersion>
|
||||
<FileVersion>3.4.4.0923</FileVersion>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<DebugType>Embedded</DebugType>
|
||||
<Configurations>Debug;Release;DebugTouchPanel;ReleaseTouchPanel</Configurations>
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
|
||||
<RootNamespace>MSFSPopoutPanelManager.Orchestration</RootNamespace>
|
||||
<Platforms>x64</Platforms>
|
||||
<Version>3.4.3.0911</Version>
|
||||
<AssemblyVersion>3.4.3.0911</AssemblyVersion>
|
||||
<FileVersion>3.4.3.0911</FileVersion>
|
||||
<Version>3.4.4.0923</Version>
|
||||
<AssemblyVersion>3.4.4.0923</AssemblyVersion>
|
||||
<FileVersion>3.4.4.0923</FileVersion>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<DebugType>Embedded</DebugType>
|
||||
<Configurations>Debug;Release;DebugTouchPanel;ReleaseTouchPanel</Configurations>
|
||||
|
|
|
@ -28,10 +28,10 @@ namespace MSFSPopoutPanelManager.Orchestration
|
|||
|
||||
var panelsStartingLeft = GetPanelMenubarStartingLeft(sourceImage, rectangle, panelMenubarTop + 5);
|
||||
|
||||
// The center of magnifying glass icon is around (2.8 x height of menubar) to the right of the panel menubar starting left
|
||||
// The center of magnifying glass icon is around (2.7 x height of menubar) to the right of the panel menubar starting left
|
||||
// But need to use higher number here to click the left side of magnifying glass icon because on some panel, the ratio is smaller
|
||||
var menubarHeight = panelMenubarBottom - panelMenubarTop;
|
||||
var magnifyingIconXCoor = panelsStartingLeft - Convert.ToInt32(menubarHeight * 2.8); // ToDo: play around with this multiplier to find the best for all resolutions
|
||||
var magnifyingIconXCoor = panelsStartingLeft - Convert.ToInt32(menubarHeight * 2.7); // ToDo: play around with this multiplier to find the best for all resolutions
|
||||
var magnifyingIconYCoor = panelMenubarTop + Convert.ToInt32(menubarHeight / 2.2);
|
||||
|
||||
return new Point(magnifyingIconXCoor, magnifyingIconYCoor);
|
||||
|
@ -80,14 +80,13 @@ namespace MSFSPopoutPanelManager.Orchestration
|
|||
// Get a snippet of 1 pixel wide vertical strip of windows. We will choose the strip left of center.
|
||||
// This is to determine when the actual panel's vertical pixel starts in the window. This will allow accurate sizing of the template image
|
||||
var left = Convert.ToInt32((rectangle.Width) * 0.70); // look at around 70% from the left
|
||||
var top = sourceImage.Height - rectangle.Height;
|
||||
|
||||
if (top < 0 || left < 0)
|
||||
if (left < 0)
|
||||
return -1;
|
||||
|
||||
unsafe
|
||||
{
|
||||
var stripData = sourceImage.LockBits(new Rectangle(left, top, 1, rectangle.Height), ImageLockMode.ReadWrite, sourceImage.PixelFormat);
|
||||
var stripData = sourceImage.LockBits(new Rectangle(left, 0, 1, rectangle.Height), ImageLockMode.ReadWrite, sourceImage.PixelFormat);
|
||||
|
||||
int bytesPerPixel = Bitmap.GetPixelFormatSize(stripData.PixelFormat) / 8;
|
||||
int heightInPixels = stripData.Height;
|
||||
|
@ -106,7 +105,7 @@ namespace MSFSPopoutPanelManager.Orchestration
|
|||
if (red == 255 && green == 255 && blue == 255)
|
||||
{
|
||||
sourceImage.UnlockBits(stripData);
|
||||
return y + top;
|
||||
return y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
|
||||
<RootNamespace>MSFSPopoutPanelManager.Shared</RootNamespace>
|
||||
<Platforms>x64</Platforms>
|
||||
<Version>3.4.3.0911</Version>
|
||||
<AssemblyVersion>3.4.3.0911</AssemblyVersion>
|
||||
<FileVersion>3.4.3.0911</FileVersion>
|
||||
<Version>3.4.4.0923</Version>
|
||||
<AssemblyVersion>3.4.4.0923</AssemblyVersion>
|
||||
<FileVersion>3.4.4.0923</FileVersion>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<DebugType>Embedded</DebugType>
|
||||
<Configurations>Debug;Release;DebugTouchPanel;ReleaseTouchPanel</Configurations>
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
|
||||
<RootNamespace>MSFSPopoutPanelManager.SimConnectAgent</RootNamespace>
|
||||
<Platforms>x64</Platforms>
|
||||
<Version>3.4.3.0911</Version>
|
||||
<AssemblyVersion>3.4.3.0911</AssemblyVersion>
|
||||
<FileVersion>3.4.3.0911</FileVersion>
|
||||
<Version>3.4.4.0923</Version>
|
||||
<AssemblyVersion>3.4.4.0923</AssemblyVersion>
|
||||
<FileVersion>3.4.4.0923</FileVersion>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<DebugType>Embedded</DebugType>
|
||||
<Configurations>Debug;Release;DebugTouchPanel;ReleaseTouchPanel</Configurations>
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
|
||||
<RootNamespace>MSFSPopoutPanelManager.TouchPanelAgent</RootNamespace>
|
||||
<Platforms>x64</Platforms>
|
||||
<Version>3.4.3.0911</Version>
|
||||
<AssemblyVersion>3.4.3.0911</AssemblyVersion>
|
||||
<FileVersion>3.4.3.0911</FileVersion>
|
||||
<Version>3.4.4.0923</Version>
|
||||
<AssemblyVersion>3.4.4.0923</AssemblyVersion>
|
||||
<FileVersion>3.4.4.0923</FileVersion>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<DebugType>Embedded</DebugType>
|
||||
<Configurations>Debug;Release;DebugTouchPanel;ReleaseTouchPanel</Configurations>
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
|
||||
<RootNamespace>MSFSPopoutPanelManager.UserDataAgent</RootNamespace>
|
||||
<Platforms>x64</Platforms>
|
||||
<Version>3.4.3.0911</Version>
|
||||
<AssemblyVersion>3.4.3.0911</AssemblyVersion>
|
||||
<FileVersion>3.4.3.0911</FileVersion>
|
||||
<Version>3.4.4.0923</Version>
|
||||
<AssemblyVersion>3.4.4.0923</AssemblyVersion>
|
||||
<FileVersion>3.4.4.0923</FileVersion>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<DebugType>Embedded</DebugType>
|
||||
<Configurations>Debug;Release;DebugTouchPanel;ReleaseTouchPanel</Configurations>
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
|
||||
<RootNamespace>MSFSPopoutPanelManager.WebServer</RootNamespace>
|
||||
<Platforms>x64</Platforms>
|
||||
<Version>3.4.3.0911</Version>
|
||||
<AssemblyVersion>3.4.3.0911</AssemblyVersion>
|
||||
<FileVersion>3.4.3.0911</FileVersion>
|
||||
<Version>3.4.4.0923</Version>
|
||||
<AssemblyVersion>3.4.4.0923</AssemblyVersion>
|
||||
<FileVersion>3.4.4.0923</FileVersion>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<DebugType>Embedded</DebugType>
|
||||
<Configurations>Debug;Release;DebugTouchPanel;ReleaseTouchPanel</Configurations>
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
|
||||
<RootNamespace>MSFSPopoutPanelManager.WindowsAgent</RootNamespace>
|
||||
<Platforms>x64</Platforms>
|
||||
<Version>3.4.3.0911</Version>
|
||||
<AssemblyVersion>3.4.3.0911</AssemblyVersion>
|
||||
<FileVersion>3.4.3.0911</FileVersion>
|
||||
<Version>3.4.4.0923</Version>
|
||||
<AssemblyVersion>3.4.4.0923</AssemblyVersion>
|
||||
<FileVersion>3.4.4.0923</FileVersion>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<DebugType>Embedded</DebugType>
|
||||
<Configurations>Debug;Release;DebugTouchPanel;ReleaseTouchPanel</Configurations>
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
<RootNamespace>MSFSPopoutPanelManager.WpfApp</RootNamespace>
|
||||
<ApplicationIcon>logo.ico</ApplicationIcon>
|
||||
<Platforms>x64</Platforms>
|
||||
<Version>3.4.3.0911</Version>
|
||||
<AssemblyVersion>3.4.3.0911</AssemblyVersion>
|
||||
<FileVersion>3.4.3.0911</FileVersion>
|
||||
<Version>3.4.4.0923</Version>
|
||||
<AssemblyVersion>3.4.4.0923</AssemblyVersion>
|
||||
<FileVersion>3.4.4.0923</FileVersion>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
<DebugType>embedded</DebugType>
|
||||
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
|
||||
|
|
Loading…
Reference in a new issue