aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2010-10-01 11:25:09 -0400
committerGavin Andresen <gavinandresen@gmail.com>2010-10-01 11:25:09 -0400
commit5ccee900a0274d82ad5c2a6820d15c4d5a3390da (patch)
tree5fd3810cb01f0e78cf5eb852b40503c89d0e08cd
parent369010406e7307b00b6e48e9c6415fff4bb032a3 (diff)
parent178152f604aed37df703336344ff334e6d0fd244 (diff)
downloadbitcoin-5ccee900a0274d82ad5c2a6820d15c4d5a3390da.tar.xz
Merge remote branch 'refs/remotes/svn/trunk' into svn
-rw-r--r--headers.h2
-rw-r--r--ui.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/headers.h b/headers.h
index 31e6712017..e5499464b6 100644
--- a/headers.h
+++ b/headers.h
@@ -11,7 +11,7 @@
#ifdef _WIN32_WINNT
#undef _WIN32_WINNT
#endif
-#define _WIN32_WINNT 0x0400
+#define _WIN32_WINNT 0x0500
#ifdef _WIN32_IE
#undef _WIN32_IE
#endif
diff --git a/ui.cpp b/ui.cpp
index 800bbfdf0d..d17c208f9c 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -109,6 +109,8 @@ void SetItemTextColour(wxListCtrl* listCtrl, int nIndex, const wxColour& colour)
// so don't want to set it unless it's different. Default colour has
// alpha 0 transparent, so our colours don't match using operator==.
wxColour c1 = listCtrl->GetItemTextColour(nIndex);
+ if (!c1.IsOk())
+ c1 = wxColour(0,0,0);
if (colour.Red() != c1.Red() || colour.Green() != c1.Green() || colour.Blue() != c1.Blue())
listCtrl->SetItemTextColour(nIndex, colour);
}