mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
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:
parent
9e528c18ad
commit
53fa8e3174
@ -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>
|
||||
|
||||
* 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)
|
||||
|
Loading…
Reference in New Issue
Block a user