git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45150
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
M_BMPDATA->m_pixmap = XCreatePixmap( xdisplay, xroot, width, height, depth );
M_BMPDATA->m_pixmap = XCreatePixmap( xdisplay, xroot, width, height, depth );
+ // Create mask if necessary
+ const bool hasMask = image.HasMask();
XImage *mask_image = (XImage*) NULL;
XImage *mask_image = (XImage*) NULL;
{
mask_image = XCreateImage( xdisplay, xvisual, 1, ZPixmap, 0, 0, width, height, 32, 0 );
mask_image->data = (char*) malloc( mask_image->bytes_per_line * mask_image->height );
{
mask_image = XCreateImage( xdisplay, xvisual, 1, ZPixmap, 0, 0, width, height, 32, 0 );
mask_image->data = (char*) malloc( mask_image->bytes_per_line * mask_image->height );
unsigned char *colorCube =
wxTheApp->GetVisualInfo(M_BMPDATA->m_display)->m_colorCube;
unsigned char *colorCube =
wxTheApp->GetVisualInfo(M_BMPDATA->m_display)->m_colorCube;
- bool hasMask = image.HasMask();
-
int index = 0;
for (int y = 0; y < height; y++)
{
int index = 0;
for (int y = 0; y < height; y++)
{