diff options
| author | Manolo Gouy <Manolo> | 2016-02-02 08:38:55 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-02-02 08:38:55 +0000 |
| commit | 5866281d4fd06c55775f7bdd5ba09ef5d5db3ac7 (patch) | |
| tree | a0ed576ae525ac8d0e29b303f316a443a9ff5f92 /examples/shapedwindow.cxx | |
| parent | 816e0c1ab454dc0d92bba548a5c878f665f76d23 (diff) | |
Set depth of image returned by Fl_Image_Surface::image() back to 3 on Mac OS X.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11119 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'examples/shapedwindow.cxx')
| -rw-r--r-- | examples/shapedwindow.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/shapedwindow.cxx b/examples/shapedwindow.cxx index a7ffe8f13..4863cae52 100644 --- a/examples/shapedwindow.cxx +++ b/examples/shapedwindow.cxx @@ -86,12 +86,6 @@ Fl_RGB_Image* prepare_shape(int w) Fl_RGB_Image* img = surf->image(); delete surf; current->set_current(); - if (img->d() == 4) { // if RGBA image, set its A component equal to its R component - for (int i = 0; i < img->h(); i ++) { - uchar *q = (uchar*)img->array + i * img->ld(); - for (int j = 0; j < img->w(); j++, q += 4) *(q+3) = *q; - } - } return img; // return white image on black background } |
