mirror of https://github.com/GNOME/gimp.git
Fixed bug causing incorrect image display when all channels are turned
off.
This commit is contained in:
parent
b798753917
commit
b56f9f515f
|
@ -1,3 +1,8 @@
|
|||
Tue Jan 27 10:21:00 PST 1998 Raph Levien <raph@acm.org>
|
||||
|
||||
* app/gimage.c: fixed bug in image display with all channels
|
||||
turned off
|
||||
|
||||
Tue Jan 27 00:18:28 PST 1998 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* app/xcf.c: fixes an off by one error in xcf_tile_save_rle()
|
||||
|
|
12
app/gimage.c
12
app/gimage.c
|
@ -1003,6 +1003,17 @@ gimage_construct_layers (GImage *gimage, int x, int y, int w, int h)
|
|||
if ((layer = gimage_floating_sel (gimage)))
|
||||
floating_sel_composite (layer, x, y, w, h, FALSE);
|
||||
|
||||
/* Note added by Raph Levien, 27 Jan 1998
|
||||
|
||||
This looks it was intended as an optimization, but it seems to
|
||||
have correctness problems. In particular, if all channels are
|
||||
turned off, the screen simply does not update the projected
|
||||
image. It should be black. Turning off this optimization seems to
|
||||
restore correct behavior. At some future point, it may be
|
||||
desirable to turn the optimization back on.
|
||||
|
||||
*/
|
||||
#if 0
|
||||
/* If all channels are not visible, simply return */
|
||||
switch (gimage_base_type (gimage))
|
||||
{
|
||||
|
@ -1021,6 +1032,7 @@ gimage_construct_layers (GImage *gimage, int x, int y, int w, int h)
|
|||
return;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
while (list)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue