aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/dragNdrop
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-08-02 14:36:36 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-08-02 14:36:36 +0200
commitd65351d324043f7c9d74f6dcf966ea40792017a5 (patch)
tree31915006ecee0c90c6deb3fa898d7e2b81b5ec3f /Samples/dragNdrop
parent85190e474cae0a87e29755c156140cd29c85cbb5 (diff)
merge step 2
Diffstat (limited to 'Samples/dragNdrop')
-rw-r--r--Samples/dragNdrop/dragNdrop.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Samples/dragNdrop/dragNdrop.cs b/Samples/dragNdrop/dragNdrop.cs
index 9af1c3d3..4b063263 100644
--- a/Samples/dragNdrop/dragNdrop.cs
+++ b/Samples/dragNdrop/dragNdrop.cs
@@ -1,5 +1,6 @@
using Crow;
using Samples;
+using Crow.Drawing;
namespace tests
{
@@ -29,9 +30,8 @@ namespace tests
Rectangle r = e.DragSource.LastPaintedSlot;
startGroup = e.DragSource.Parent as Group;
- Crow.Cairo.Surface dragImg = surf.CreateSimilar (Crow.Cairo.Content.ColorAlpha,
- r.Width, r.Height);
- using (Crow.Cairo.Context gr = new Crow.Cairo.Context(dragImg)) {
+ Surface dragImg = CreateSurface (ref r);
+ using (Context gr = new Context(dragImg)) {
gr.SetSource (e.DragSource.bmp, 0, 0);
gr.Paint ();
}