gdk/directfb: cursor size is artificially limited
Cursor sizes in DirectFB can be large (4095x4095), limit to 128x128 though, because the x11 backend has this limit, too - for max. compatibility. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=609201 Signed-off-by: Javier Jardón <jjardon@gnome.org>
This commit is contained in:

committed by
Tristan Van Berkom

parent
987256968b
commit
935a3f7b65
@ -492,6 +492,8 @@ gdk_cursor_get_display (GdkCursor *cursor)
|
|||||||
guint
|
guint
|
||||||
gdk_display_get_default_cursor_size (GdkDisplay *display)
|
gdk_display_get_default_cursor_size (GdkDisplay *display)
|
||||||
{
|
{
|
||||||
|
g_return_val_if_fail (GDK_IS_DISPLAY (display), 0);
|
||||||
|
|
||||||
return 16;
|
return 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -510,8 +512,12 @@ gdk_display_get_maximal_cursor_size (GdkDisplay *display,
|
|||||||
guint *width,
|
guint *width,
|
||||||
guint *height)
|
guint *height)
|
||||||
{
|
{
|
||||||
*width=gdk_display_get_default_cursor_size(display);
|
g_return_if_fail (GDK_IS_DISPLAY (display));
|
||||||
*height=*width;
|
|
||||||
|
/* Cursor sizes in DirectFB can be large (4095x4095), but we limit this to
|
||||||
|
128x128 for max compatibility with the x11 backend. */
|
||||||
|
*width = 128;
|
||||||
|
*height = 128;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user