Minor cleanup and refactoring.

This commit is contained in:
Jared Goodwin 2019-04-12 20:14:36 -07:00
parent 7009d03087
commit 01fdca8ebf
6 changed files with 13 additions and 37 deletions

View File

@ -99,12 +99,7 @@ namespace Remotely_ScreenCast.Core.Capture
if (left < right && top < bottom)
{
// Bounding box is valid.
left = Math.Max(left - 20, 0);
top = Math.Max(top - 20, 0);
right = Math.Min(right + 20, width);
bottom = Math.Min(bottom + 20, height);
// Bounding box is valid
return new Rectangle(left, top, right - left, bottom - top);
}

View File

@ -96,29 +96,6 @@ namespace Remotely_ScreenCast.Core.Capture
capturer.CaptureFullscreen = false;
}
//long newQuality;
//if (viewer.PendingFrames < 8)
//{
// newQuality = Math.Min(1, viewer.ImageQuality + 1);
//}
//else
//{
// newQuality = Math.Max(0, viewer.ImageQuality - 1);
//}
//if (newQuality != viewer.ImageQuality)
//{
// Logger.Write($"New quality: {newQuality}");
// viewer.ImageQuality = newQuality;
// viewer.FullScreenRefreshNeeded = true;
//}
//else if (viewer.FullScreenRefreshNeeded)
//{
// Logger.Write($"Quality stabilized.");
// capturer.CaptureFullscreen = true;
// viewer.FullScreenRefreshNeeded = false;
//}
encodedImageBytes = ImageUtils.EncodeBitmap(newImage, viewer.EncoderParams);
if (encodedImageBytes?.Length > 0)

View File

@ -1 +1 @@
2019.04.10.1704
2019.04.12.0814

View File

@ -18,5 +18,5 @@
Open-Source Licenses: <a asp-page="/Credits">@Request.Scheme://@Request.Host/Credits</a>
</p>
<p>
Version: @System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString()
Version: @System.Diagnostics.FileVersionInfo.GetVersionInfo("Remotely_Server.dll").FileVersion.ToString()
</p>

View File

@ -36,7 +36,7 @@
Instant desktop sharing with no installation or hassles.
</div>
<div class="col-sm-6">
<h6 class="font-weight-bold">Windows</h6 class="font-weight-bold">
<h6 class="font-weight-bold">Windows</h6>
<p>
<strong>Download:</strong>
<br />
@ -44,7 +44,7 @@
</p>
</div>
@*<div class="col-sm-6">
<h6 class="font-weight-bold">Windows 32-Bit</h6 class="font-weight-bold">
<h6 class="font-weight-bold">Windows 32-Bit</h6>
<p>
<strong>Download:</strong>
<br />
@ -61,7 +61,7 @@
@if (User.Identity.IsAuthenticated)
{
<div class="col-sm-6">
<h6 class="font-weight-bold">Windows 10 64-Bit</h6 class="font-weight-bold">
<h6 class="font-weight-bold">Windows 10 64-Bit</h6>
<p>
<strong>Download:</strong>
<br />
@ -89,7 +89,7 @@
</div>
<div class="col-sm-6 ">
<h6 class="font-weight-bold">Windows 10 32-Bit</h6 class="font-weight-bold">
<h6 class="font-weight-bold">Windows 10 32-Bit</h6>
<p>
<strong>Download:</strong>
<br />
@ -115,7 +115,7 @@
</p>
</div>
<div class="col-sm-6 ">
<h6 class="font-weight-bold">Linux 64-Bit</h6 class="font-weight-bold">
<h6 class="font-weight-bold">Linux 64-Bit</h6>
<p>
<strong>Download:</strong>
<br />
@ -144,7 +144,7 @@
else
{
<div class="col-sm-6 ">
<h6 class="font-weight-bold">Resident clients are available after logging in.</h6 class="font-weight-bold">
<h6 class="font-weight-bold">Resident clients are available after logging in.</h6>
</div>
}

View File

@ -15,6 +15,10 @@ a.navbar-brand {
margin: 15px;
}
h6 {
font-size: 1rem !important;
}
.logo-subtitle {
font-size: .5em;