wl_list_remove(&shsurf->link);
if (shsurf->fullscreen.background_surface)
+ {
/* TODO: pepper_surface_destroy(shsurf->fullscreen.background_surface); */;
+ }
if (shsurf->fullscreen.background_view)
pepper_view_destroy(shsurf->fullscreen.background_view);
return output;
}
-void
+static void
shell_surface_get_geometry(shell_surface_t *shsurf, pixman_rectangle32_t *geometry)
{
double x, y;
{
/* TODO: */
if (version != XDG_SHELL_VERSION_CURRENT)
+ {
PEPPER_ERROR("wl_client@%p want bad XDG_SHELL version %d\n", client, version);
+ }
}
static void
static void
fini_renderer(drm_output_t *output);
-void
+static void
drm_output_destroy(void *o)
{
drm_output_t *output = (drm_output_t *)o;
return -1;
}
-static int
-find_crtc(pepper_drm_t *drm, drmModeRes *res, drmModeConnector *conn)
+static pepper_bool_t
+find_crtc(pepper_drm_t *drm, drmModeRes *res, drmModeConnector *conn, uint32_t *crtc_id)
{
int i, j;
drmModeEncoder *enc;
if (!crtc_used)
{
drmModeFreeEncoder(enc);
- return res->crtcs[j];
+ *crtc_id = res->crtcs[j];
+ return PEPPER_TRUE;
}
}
drmModeFreeEncoder(enc);
}
- return -1;
+ return PEPPER_FALSE;
}
static void
wl_list_insert(&drm->output_list, &output->link);
/* find crtc + connector */
- output->crtc_id = find_crtc(drm, res, conn);
- if (output->crtc_id < 0)
+ if (!find_crtc(drm, res, conn, &output->crtc_id))
{
PEPPER_ERROR("Failed to find crtc in %s\n", __FUNCTION__);
goto error;
printf("Blue channel: %i bits at offset %i\n",
info->red.length, info->blue.offset);
}
-void
+
+static void
fbdev_output_destroy(void *o)
{
fbdev_output_t *output = (fbdev_output_t *)o;
}
}
-const char *
+static const char *
li_device_get_property(void *dev, const char *key)
{
li_device_t *device = (li_device_t *)dev;
pepper_virtual_terminal_setup(int tty);
PEPPER_API void
-pepper_virtual_terminal_restore();
+pepper_virtual_terminal_restore(void);
#ifdef __cplusplus
}
static int pepper_log_verbosity = 3;
static int cached_tm_mday = -1;
-void __attribute__ ((constructor))
+static void __attribute__ ((constructor))
before_main(void)
{
pepper_log_file = stdout;
} vt_data;
PEPPER_API void
-pepper_virtual_terminal_restore()
+pepper_virtual_terminal_restore(void)
{
if (vt_data.tty_fd >= 0)
{
struct vt_mode mode = {0};
if ((vt_data.kb_mode >= 0) && (ioctl(fd, KDSKBMODE, vt_data.kb_mode) < 0))
+ {
PEPPER_ERROR("");
+ }
if (ioctl(fd, KDSETMODE, KD_TEXT) < 0)
+ {
PEPPER_ERROR("");
+ }
mode.mode = VT_AUTO;
if (ioctl(fd, VT_SETMODE, &mode) < 0)
+ {
PEPPER_ERROR("");
+ }
if ((vt_data.saved_tty_num > 0) && (ioctl(fd, VT_ACTIVATE, vt_data.saved_tty_num) < 0))
+ {
PEPPER_ERROR("");
+ }
close(fd);
}
plane_entry_set_plane(&view->plane_entries[output->id], plane);
}
-void
+static void
view_update_geometry(pepper_view_t *view)
{
pepper_list_t *l;
}
if (strstr(extensions, "EGL_EXT_buffer_age"))
+ {
gr->has_buffer_age = PEPPER_TRUE;
+ }
else
+ {
PEPPER_ERROR("Performance Warning: EGL_EXT_buffer_age not supported.\n");
+ }
if (strstr(extensions, "EGL_EXT_platform_base"))
{
if (eglGetConfigAttrib(gr->display, configs[i], EGL_BUFFER_SIZE, &attrib))
{
- if (attrib == PEPPER_FORMAT_BPP(format))
+ if (attrib == (EGLint)PEPPER_FORMAT_BPP(format))
{
config = configs[i];
break;
pepper_x11_output_create(pepper_x11_connection_t *connection, int32_t w, int32_t h,
const char *renderer);
-PEPPER_API pepper_bool_t
-pepper_x11_input_init(pepper_x11_connection_t* connection);
+PEPPER_API void
+pepper_x11_seat_create(pepper_x11_connection_t* conn);
#ifdef __cplusplus
}
case XCB_MOTION_NOTIFY:
{
xcb_motion_notify_event_t *motion = (xcb_motion_notify_event_t *)xev;
+ UNUSED(motion);
}
break;
default :
void
x11_window_input_property_change(xcb_connection_t *conn, xcb_window_t window)
{
- const static uint32_t values[] =
+ static const uint32_t values[] =
{
XCB_EVENT_MASK_EXPOSURE |
XCB_EVENT_MASK_STRUCTURE_NOTIFY |
char name[32];
int32_t x, y;
- uint32_t w, h;
+ int32_t w, h;
uint32_t subpixel;
uint32_t scale;
uint8_t depth;