Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More colour-related typecasts made explicit.

  • Loading branch information...
commit 5db91d8db7a3c1215f20fb0853a85561c3696d0a 1 parent f1b3613
@worstje worstje authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 dialogs/ColourPickerDlg.cpp
View
8 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 ();
Please sign in to comment.
Something went wrong with that request. Please try again.