changed calls to wxMac's private wxColour::Set to use the renamed function wxColour::FromRGBColor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
af182d461f
commit
a166eb645e
@ -69,6 +69,7 @@ int wxColourDialog::ShowModal()
|
||||
currentColor.green = info.theColor.color.rgb.green ;
|
||||
currentColor.blue = info.theColor.color.rgb.blue ;
|
||||
m_colourData.m_dataColour.FromRGBColor((WXCOLORREF*) ¤tColor);
|
||||
|
||||
return wxID_OK;
|
||||
}
|
||||
#else
|
||||
|
@ -116,7 +116,7 @@ pascal OSStatus wxMacCarbonFontPanelHandler(EventHandlerCallRef nextHandler, Eve
|
||||
|
||||
RGBColor fontColor ;
|
||||
if ( cEvent.GetParameter<RGBColor>(kEventParamFontColor, &fontColor) == noErr )
|
||||
fontdata.m_fontColour.Set((WXCOLORREF*) &fontColor);
|
||||
fontdata.m_fontColour.FromRGBColor((WXCOLORREF*) &fontColor);
|
||||
else
|
||||
{
|
||||
CFDictionaryRef dict ;
|
||||
@ -141,7 +141,7 @@ pascal OSStatus wxMacCarbonFontPanelHandler(EventHandlerCallRef nextHandler, Eve
|
||||
{
|
||||
if ( tagPtr[i] == kATSUColorTag && sizePtr[i] == sizeof(RGBColor))
|
||||
{
|
||||
fontdata.m_fontColour.Set((WXCOLORREF*) valuesPtr);
|
||||
fontdata.m_fontColour.FromRGBColor((WXCOLORREF*) valuesPtr);
|
||||
break ;
|
||||
}
|
||||
bytePtr = (UInt32*)( (UInt8*)bytePtr + sizePtr[i]);
|
||||
|
Loading…
Reference in New Issue
Block a user