Commit 53fa8e31 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

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
parent 9e528c18
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>
* gdk/directfb/gdkdisplay-directfb.c
......
......@@ -278,7 +278,7 @@ _gdk_directfb_copy_to_image (GdkDrawable *drawable,
{
DFBResult ret;
ret = layer->SetCooperativeLevel (layer, DLSCL_EXCLUSIVE);
ret = layer->SetCooperativeLevel (layer, DLSCL_ADMINISTRATIVE);
if (ret)
{
DirectFBError ("_gdk_directfb_copy_to_image - SetCooperativeLevel",
......@@ -300,7 +300,7 @@ _gdk_directfb_copy_to_image (GdkDrawable *drawable,
if (!image)
image = gdk_image_new (GDK_IMAGE_NORMAL,
gdk_visual_get_system (), width, height);
gdk_drawable_get_visual (drawable), width, height);
private = image->windowing_data;
......@@ -309,7 +309,7 @@ _gdk_directfb_copy_to_image (GdkDrawable *drawable,
private->surface->Blit( private->surface,
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;
if (impl->wrapper == _gdk_parent_root)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment