Permalink
Browse files

More colour-related typecasts made explicit.

  • Loading branch information...
worstje committed Sep 16, 2010
1 parent f1b3613 commit 5db91d8db7a3c1215f20fb0853a85561c3696d0a
Showing with 4 additions and 4 deletions.
  1. +4 −4 dialogs/ColourPickerDlg.cpp
@@ -334,9 +334,9 @@ CColor clr;
clr.SetColor (m_ctlSwatch.m_colour);
-float fHue = clr.GetHue ();
-float fSaturation = clr.GetSaturation ();
-float fLuminance = clr.GetLuminance ();
+double fHue = clr.GetHue ();
+double fSaturation = clr.GetSaturation ();
+double fLuminance = clr.GetLuminance ();
CString strName;
@@ -550,7 +550,7 @@ LRESULT CColourPickerDlg::OnKickIdle(WPARAM, LPARAM)
void CColourPickerDlg::OnRandom()
{
- m_ctlSwatch.m_colour = genrand () * (double) 0x1000000;
+ m_ctlSwatch.m_colour = (COLORREF) (genrand () * (double) 0x1000000);
m_ctlSwatch.RedrawWindow ();
ShowName ();

0 comments on commit 5db91d8

Please sign in to comment.