applied patch from Denis Oliver Kropp <dok@directfb.org>.

2008-01-31  Sven Neumann  <sven@gimp.org>

	* gdk/directfb/gdkimage-directfb.c 
(_gdk_directfb_copy_to_image):
	applied patch from Denis Oliver Kropp <dok@directfb.org>.


svn path=/trunk/; revision=19448
This commit is contained in:
Sven Neumann 2008-01-31 17:27:54 +00:00 committed by Sven Neumann
parent 9e528c18ad
commit 53fa8e3174
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-01-31 Sven Neumann <sven@gimp.org>
* gdk/directfb/gdkimage-directfb.c (_gdk_directfb_copy_to_image):
applied patch from Denis Oliver Kropp <dok@directfb.org>.
2008-01-31 Sven Neumann <sven@gimp.org> 2008-01-31 Sven Neumann <sven@gimp.org>
* gdk/directfb/gdkdisplay-directfb.c * gdk/directfb/gdkdisplay-directfb.c

View File

@ -278,7 +278,7 @@ _gdk_directfb_copy_to_image (GdkDrawable *drawable,
{ {
DFBResult ret; DFBResult ret;
ret = layer->SetCooperativeLevel (layer, DLSCL_EXCLUSIVE); ret = layer->SetCooperativeLevel (layer, DLSCL_ADMINISTRATIVE);
if (ret) if (ret)
{ {
DirectFBError ("_gdk_directfb_copy_to_image - SetCooperativeLevel", DirectFBError ("_gdk_directfb_copy_to_image - SetCooperativeLevel",
@ -300,7 +300,7 @@ _gdk_directfb_copy_to_image (GdkDrawable *drawable,
if (!image) if (!image)
image = gdk_image_new (GDK_IMAGE_NORMAL, image = gdk_image_new (GDK_IMAGE_NORMAL,
gdk_visual_get_system (), width, height); gdk_drawable_get_visual (drawable), width, height);
private = image->windowing_data; private = image->windowing_data;
@ -309,7 +309,7 @@ _gdk_directfb_copy_to_image (GdkDrawable *drawable,
private->surface->Blit( private->surface, private->surface->Blit( private->surface,
impl->surface, &rect, dest_x, dest_y ); impl->surface, &rect, dest_x, dest_y );
private->surface->Lock( private->surface, DSLF_WRITE, &image->mem, &pitch ); private->surface->Lock( private->surface, DSLF_READ | DSLF_WRITE, &image->mem, &pitch );
image->bpl = pitch; image->bpl = pitch;
if (impl->wrapper == _gdk_parent_root) if (impl->wrapper == _gdk_parent_root)