Skip to content

Commit

Permalink
Fixed Issue #25
Browse files Browse the repository at this point in the history
  • Loading branch information
nicojeske committed Mar 27, 2019
1 parent 6ea7c4b commit fa6884c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 25 deletions.
5 changes: 5 additions & 0 deletions Ambilight/GUI/TraySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,11 @@ private void InitializeTray()
Visible = true
};

logger.Info("Keyboard Enabled: " + _keyboardEnabled);
logger.Info("Mouse Enabled: " + _mouseEnabled);
logger.Info("Mousemat Enabled: " + _mousematEnabled);
logger.Info("Ambilight mode: " + _ambiModeEnabled);

notifyIcon.ContextMenu = contextMenu;
Application.Run();
}
Expand Down
19 changes: 1 addition & 18 deletions Ambilight/Logic/LogicManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,7 @@ public void ProcessNewImage(Bitmap test)
if (settings.MouseEnabledBool)
_mouseLogic.Process(newImage);

/* using (MemoryStream outStream = new MemoryStream())
{
using (ImageFactory imageFactory = new ImageFactory(preserveExifData: true))
{
imageFactory.Load(newImage).Saturation(100).Save(outStream);
using (Bitmap image = new Bitmap(Image.FromStream(outStream)))
{
if (settings.KeyboardEnabledBool)
_keyboardLogic.Process(image);
if (settings.PadEnabledBool)
_mousePadLogic.Process(image);
if (settings.MouseEnabledBool)
_mouseLogic.Process(image);
}
}
}*/




Expand Down
4 changes: 1 addition & 3 deletions Ambilight/Logic/MouseLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ internal void Process(Bitmap newImage)
var mouseGrid = Corale.Colore.Razer.Mouse.Effects.CustomGrid.Create();
Bitmap mapMouse = ImageManipulation.ResizeImage(newImage, Corale.Colore.Razer.Mouse.Constants.MaxColumns,
Corale.Colore.Razer.Mouse.Constants.MaxRows);



mapMouse = ImageManipulation.ApplySaturation(mapMouse, settings.Saturation);
mouseGrid = GenerateMouseGrid(mapMouse, mouseGrid);
Chroma.Instance.Mouse.SetGrid(mouseGrid);
mapMouse.Dispose();
Expand Down
2 changes: 1 addition & 1 deletion Ambilight/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal class Program
private static void Main(string[] args)
{

logger.Info("\n\n\n --- Razer Ambilight Version 2.0.1 ----");
logger.Info("\n\n\n --- Razer Ambilight Version 2.0.3 ----");
AutoUpdater.Start("https://vertretungsplan.ga/ambi/ambi.xml");

GUI.TraySettings tray = new GUI.TraySettings();
Expand Down
6 changes: 3 additions & 3 deletions Ambilight/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Ambilight")]
[assembly: AssemblyCopyright("Copyright Nico Jeske © 2018")]
[assembly: AssemblyCopyright("Copyright Nico Jeske © 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,6 +32,6 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.2.0")]
[assembly: AssemblyFileVersion("2.0.2.0")]
[assembly: AssemblyVersion("2.0.3.0")]
[assembly: AssemblyFileVersion("2.0.3.0")]
[assembly: NeutralResourcesLanguage("")]

0 comments on commit fa6884c

Please sign in to comment.