merged 2.4 branch into the trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#endif
|
||||
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/gtk/private.h"
|
||||
|
||||
#include <gdk/gdk.h>
|
||||
#include <gdk/gdkx.h>
|
||||
@@ -167,7 +168,7 @@ void wxColour::InitFromName( const wxString &colourName )
|
||||
{
|
||||
m_refData = new wxColourRefData();
|
||||
|
||||
if (!gdk_color_parse( colourName.mb_str(), &M_COLDATA->m_color ))
|
||||
if (!gdk_color_parse( wxGTK_CONV( colourName ), &M_COLDATA->m_color ))
|
||||
{
|
||||
// VZ: asserts are good in general but this one is triggered by
|
||||
// calling wxColourDatabase::FindColour() with an
|
||||
@@ -217,11 +218,13 @@ void wxColour::Set( unsigned char red, unsigned char green, unsigned char blue )
|
||||
{
|
||||
AllocExclusive();
|
||||
|
||||
m_refData = new wxColourRefData();
|
||||
M_COLDATA->m_color.red = ((unsigned short)red) << SHIFT;
|
||||
M_COLDATA->m_color.green = ((unsigned short)green) << SHIFT;
|
||||
M_COLDATA->m_color.blue = ((unsigned short)blue) << SHIFT;
|
||||
M_COLDATA->m_color.pixel = 0;
|
||||
|
||||
M_COLDATA->m_colormap = (GdkColormap*) NULL;
|
||||
M_COLDATA->m_hasPixel = FALSE;
|
||||
}
|
||||
|
||||
unsigned char wxColour::Red() const
|
||||
|
Reference in New Issue
Block a user