summaryrefslogtreecommitdiff
path: root/Source/++DFB/LockRectangle.diff
blob: ff8408e9fe15e26c38cddcf11a6770e0130bf72a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/++dfb/idirectfbsurface.cpp b/++dfb/idirectfbsurface.cpp
index bc29fd5..d53ac78 100644
--- a/++dfb/idirectfbsurface.cpp
+++ b/++dfb/idirectfbsurface.cpp
@@ -438,3 +438,11 @@ void IDirectFBSurface::Write( const void               *ptr,
      DFBCHECK( iface->Write (iface, rect, ptr, pitch) );
 }
 
+void IDirectFBSurface::LockRectangle (DFBSurfaceLockFlags   flags,
+                                      const DFBRectangle   *rect,
+                                      void                **ptr,
+                                      int                  *pitch)
+{
+     DFBCHECK( iface->LockRectangle (iface, flags, rect, ptr, pitch) );
+}
+
diff --git a/include/idirectfbsurface.h b/include/idirectfbsurface.h
index f68ae78..a490ff2 100644
--- a/include/idirectfbsurface.h
+++ b/include/idirectfbsurface.h
@@ -195,6 +195,11 @@ public:
                                                  int                       pitch,
                                                  const DFBRectangle       *rect = NULL);
 
+     void                   LockRectangle       (DFBSurfaceLockFlags       flags,
+                                                 const DFBRectangle       *rect,
+                                                 void                    **ptr,
+                                                 int                      *pitch);
+
      inline IDirectFBSurface& operator = (const IDirectFBSurface& other){
           return IPPAny<IDirectFBSurface, IDirectFBSurface_C>::operator =(other);
      }