Fixed some problems when compiling in Mono and running on Linux.

This commit is contained in:
Michael Möller
2010-09-30 20:59:21 +00:00
parent cc719ae7e8
commit 1e21129803
6 changed files with 38 additions and 37 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
Version: MPL 1.1/GPL 2.0/LGPL 2.1
@@ -166,14 +166,17 @@ namespace OpenHardwareMonitor.GUI {
}
set {
if (value != window.Visible) {
if (value)
Redraw();
window.Visible = value;
if (value)
Redraw();
}
}
}
public void Redraw() {
if (!window.Visible)
return;
if (window.Size != buffer.Size) {
DisposeBuffer();
CreateBuffer();