Skip to content

Commit 5e57a0d

Browse files
committed
systems/x11: fix incorrect API usage (dfb_surface_get_data_offsets)
.../systems/x11/primary.c: In function 'update_screen': .../systems/x11/primary.c:878:41: warning: passing argument 1 of 'dfb_surface_get_data_offsets' from incompatible pointer type [enabled by default] .../src/core/surface.h:491:1: note: expected 'const struct CoreSurfaceConfig * const' but argument is of type 'struct CoreSurface *' This also fixes a few crashes when running the cairo test suite against the DirectFB backend.
1 parent e98a3ef commit 5e57a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systems/x11/primary.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ update_screen( DFBX11 *x11, const DFBRectangle *clip, CoreSurfaceBufferLock *loc
874874

875875
dst = xw->virtualscreen + rect.x * xw->bpp + (rect.y + offset) * ximage->bytes_per_line;
876876

877-
dfb_surface_get_data_offsets( allocation->surface, lock->addr, lock->pitch, rect.x, rect.y,
877+
dfb_surface_get_data_offsets( &allocation->config, lock->addr, lock->pitch, rect.x, rect.y,
878878
3, srces, pitches );
879879

880880
switch (xw->depth) {

0 commit comments

Comments
 (0)