]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/htlbox/htlbox.cpp
Return OS description for WinCE too.
[wxWidgets.git] / samples / htlbox / htlbox.cpp
index a5a87d34312d9231f1cdbe15c636dc49034b2515..a1f97576247a30c0228b52300c146c24d0444334 100644 (file)
@@ -476,9 +476,9 @@ wxString MyHtmlListBox::OnGetItem(size_t n) const
 #else
     int level = n % 6 + 1;
 
-    wxColour clr(abs((int)n - 192) % 256,
-                 abs((int)n - 256) % 256,
-                 abs((int)n - 128) % 256);
+    wxColour clr((unsigned char)(abs((int)n - 192) % 256),
+                 (unsigned char)(abs((int)n - 256) % 256),
+                 (unsigned char)(abs((int)n - 128) % 256));
 
     wxString label = wxString::Format(_T("<h%d><font color=%s>")
                                       _T("Item</font> <b>%lu</b>")