10489 |
string buffer containing data in the same format as an XPM file. */ |
string buffer containing data in the same format as an XPM file. */ |
10490 |
|
|
10491 |
specified_file = image_spec_value (img->spec, QCfile, NULL); |
specified_file = image_spec_value (img->spec, QCfile, NULL); |
10492 |
|
|
10493 |
{ |
{ |
10494 |
HDC frame_dc = get_frame_dc (f); |
HDC frame_dc = get_frame_dc (f); |
10495 |
hdc = CreateCompatibleDC (frame_dc); |
hdc = CreateCompatibleDC (frame_dc); |
10535 |
fn_XImageFree (xpm_image); |
fn_XImageFree (xpm_image); |
10536 |
} |
} |
10537 |
if (xpm_mask && xpm_mask->bitmap) |
if (xpm_mask && xpm_mask->bitmap) |
10538 |
{ |
{ |
10539 |
/* The mask appears to be inverted compared with what we expect. |
/* The mask appears to be inverted compared with what we expect. |
10540 |
TODO: invert our expectations. See other places where we |
TODO: invert our expectations. See other places where we |
10541 |
have to invert bits because our idea of masks is backwards. */ |
have to invert bits because our idea of masks is backwards. */ |
10546 |
SelectObject (hdc, old_obj); |
SelectObject (hdc, old_obj); |
10547 |
|
|
10548 |
img->mask = xpm_mask->bitmap; |
img->mask = xpm_mask->bitmap; |
10549 |
fn_XImageFree (xpm_mask); |
fn_XImageFree (xpm_mask); |
10550 |
DeleteDC (hdc); |
DeleteDC (hdc); |
10551 |
} |
} |
10552 |
|
|