/* Initializes the QNX video plugin. Creates the Screen context and event handles used for all window operations by the plugin.  */
static int videoInit(_THIS)
/* Initializes the QNX video plugin. Creates the Screen context and event handles used for all window operations by the plugin.  */
static int videoInit(_THIS)
{
    SDL_VideoDisplay display;
    if (screen_create_context(&context, 0) < 0) {
        return -1;
    }
    if (screen_create_event(&event) < 0) {
        return -1;
    }
    SDL_zero(display);
    if (SDL_AddVideoDisplay(&display) < 0) {
        return -1;
    }
    _this->num_displays = 1;
    return 0;
}