As we will need these values later to determine if an FBO can go onto
the cursor plane, we should store this in the device structure to
avoid having to refetch them later.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
{
*width = 64;
ret = sym_drmGetCap(device->fd, DRM_CAP_CURSOR_WIDTH, &caps);
- if (ret == 0) *width = caps;
+ if (ret == 0)
+ {
+ device->cursor.width = caps;
+ *width = caps;
+ }
}
if (height)
{
*height = 64;
ret = sym_drmGetCap(device->fd, DRM_CAP_CURSOR_HEIGHT, &caps);
- if (ret == 0) *height = caps;
+ if (ret == 0)
+ {
+ device->cursor.height = caps;
+ *height = caps;
+ }
}
}
uint32_t width, height;
} min, max;
+ struct
+ {
+ int width, height;
+ } cursor;
+
Eeze_Udev_Watch *watch;
Ecore_Event_Handler *active_hdlr;
Ecore_Event_Handler *device_change_hdlr;