2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function CopySBitMap()
8 #include <graphics/layers.h>
9 #include <graphics/clip.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH1(void, CopySBitMap
,
20 AROS_LHA(struct Layer
*, l
, A0
),
23 struct GfxBase
*, GfxBase
, 75, Graphics
)
26 If the layer has a superbitmap all the parts that are visible will
27 be refreshed with what is in the superbitmap. This function should
28 be called after the SuperBitMap of the layer was synchronized with
29 SyncSBitMap() and manipulated.
32 l - pointer to superbitmapped layer
35 The layer will show the true contents of the superbitmap that is
51 *****************************************************************************/
55 struct ClipRect
* CR
= l
->ClipRect
;
57 if (NULL
== l
->SuperBitMap
|| (l
->Flags
& LAYERSUPER
) == 0)
62 /* a cliprect of a superbitmapped layer is visible if lobs==NULL,
63 only these I have to copy into the rastport's bitmap */
66 /* I have to backup this part into the SuperBitMap! I find the
67 data in the bitmap of the rastport of this layer */
68 BltBitMap(l
->SuperBitMap
,
69 CR
->bounds
.MinX
- l
->bounds
.MinX
- l
->Scroll_X
,
70 CR
->bounds
.MinY
- l
->bounds
.MinY
- l
->Scroll_Y
,
74 CR
->bounds
.MaxX
- CR
->bounds
.MinX
+ 1,
75 CR
->bounds
.MaxY
- CR
->bounds
.MinY
+ 1,