Fix conversion from wxColour to NSColor in wxOSX/Cocoa wxDVC.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Oct 2009 22:44:23 +0000 (22:44 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 12 Oct 2009 22:44:23 +0000 (22:44 +0000)
commitf115ff4a4f4939c27047a6ecfc55a99eb7c3fcad
tree3c81e521fab8da57d8320a813c786ff2e03a0bc3
parent38c349189a580ed624e89fb9cc1065f46860092f
Fix conversion from wxColour to NSColor in wxOSX/Cocoa wxDVC.

wxColour components are in 0.255 range while NSColor ones are in 0..1 one. The
old code compiled just fine but didn't work correctly for any colours which
had any channel with value different from 0 and 255 (unsurprisingly, my tests
only used wxRED, wxGREEN and wxBLUE which all passed...).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/cocoa/dataview.mm