Example #1
0
int c128ui_init(void)
{
    int columns_key;

#ifdef SDL_DEBUG
    fprintf(stderr, "%s\n", __func__);
#endif
    resources_get_int("40/80ColumnKey", &columns_key);
    sdl_video_canvas_switch(columns_key ^ 1);

    sdl_ui_set_menu_params = c128ui_set_menu_params;

    uicart_menu_create();
    uidrive_menu_create();

    sdl_ui_set_main_menu(x128_main_menu);
    sdl_ui_set_menu_font(mem_chargen_rom + 0x800, 8, 8);
    sdl_vkbd_set_vkbd(&vkbd_c128);

#ifdef HAVE_FFMPEG
    sdl_menu_ffmpeg_init();
#endif

    return 0;
}
Example #2
0
int cbm5x0ui_init(void)
{
    cbm2_font_8 = lib_malloc(8 * 256);

    sdl_ui_set_menu_params = NULL;

    uijoyport_menu_create(1, 1, 0, 0);
    uidrive_menu_create();
    uikeyboard_menu_create();

    sdl_ui_set_menu_font(mem_chargen_rom + 0x800, 8, 8);
    sdl_ui_set_main_menu(xcbm5x0_main_menu);
    sdl_video_canvas_switch(1);

    sdl_vkbd_set_vkbd(&vkbd_cbm2);

#ifdef HAVE_FFMPEG
    sdl_menu_ffmpeg_init();
#endif

    return 0;
}
Example #3
0
int cbm2ui_init(void)
{
    cbm2_font_14 = lib_malloc(14 * 256);
    cbm2_font_8 = lib_malloc(8 * 256);

    if (cbm2_is_c500()) {
        sdl_ui_set_menu_params = NULL;
        sdl_ui_set_menu_font(mem_chargen_rom + 0x800, 8, 8);
        sdl_ui_set_main_menu(xcbm5x0_main_menu);
        sdl_video_canvas_switch(1);
    } else {
        sdl_ui_set_menu_params = cbm2ui_set_menu_params;
        sdl_ui_set_main_menu(xcbm6x0_7x0_main_menu);
    }

    sdl_vkbd_set_vkbd(&vkbd_cbm2);

#ifdef HAVE_FFMPEG
    sdl_menu_ffmpeg_init();
#endif

    return 0;
}