Screen resolution cocktail cabinet

Hi, first post here. I cant find the correct configuration for my cocktail cabinet with cocktail-cab-portrait.cg shader. I know the basics of image height, width and position parameters of the shader, but it´s not there where the problem is, it´s a resolution problem. I see this:



The image is cropped, i´ve tried diferents combinations of video_scale_integer, fullscreen, video_fullscreen_x and y, custom_viewport and I dont know what really is. Windows resolution is 1080x1920 portrait. At this point I need help, my actual snes9x_libretro.cfg is:


input_bind_timeout = "5"
input_turbo_period = "6"
input_duty_cycle = "3"
input_max_users = "4"
input_menu_toggle_gamepad_combo = "0"
input_axis_threshold = "0.500000"
ui_companion_start_on_boot = "true"
ui_companion_enable = "false"
video_gpu_record = "false"
input_remap_binds_enable = "true"
back_as_menu_toggle_enable = "true"
netplay_client_swap_input = "true"
input_descriptor_label_show = "true"
input_descriptor_hide_unbound = "false"
load_dummy_on_core_shutdown = "false"
builtin_mediaplayer_enable = "true"
builtin_imageviewer_enable = "true"
fps_show = "false"
ui_menubar_enable = "true"
suspend_screensaver_enable = "true"
libretro_directory = ":\cores"
libretro_info_path = ":\info"
video_shader = "shaders\shaders_cg\misc\cocktail-cab-portrait.cg"
content_database_path = ":\database/rdb"
cheat_database_path = ":\cheats"
menu_wallpaper_opacity = "0.300000"
menu_footer_opacity = "1.000000"
menu_header_opacity = "1.000000"
content_history_path = ":\content_history.lpl"
cursor_directory = ":\database/cursors"
rewind_enable = "false"
audio_latency = "64"
audio_sync = "true"
audio_block_frames = "0"
rewind_granularity = "1"
video_shader_enable = "true"
video_aspect_ratio = "-1.000000"
video_aspect_ratio_auto = "true"
video_windowed_fullscreen = "false"
video_scale = "3.000000"
autosave_interval = "0"
video_crop_overscan = "false"
video_scale_integer = "true"
video_smooth = "true"
video_threaded = "false"
video_shared_context = "true"
video_force_srgb_disable = "false"
video_fullscreen = "true"
bundle_assets_extract_enable = "false"
bundle_assets_extract_version_current = "0"
bundle_assets_extract_last_version = "0"
video_refresh_rate = "59.950001"
video_monitor_index = "0"
video_driver = "gl"
record_driver = "ffmpeg"
camera_driver = "null"
location_driver = "null"
threaded_data_runloop_enable = "true"
menu_throttle_framerate = "true"
menu_linear_filter = "true"
dpi_override_enable = "true"
dpi_override_value = "160"
menu_driver = "xmb"
menu_pause_libretro = "true"
menu_mouse_enable = "true"
menu_pointer_enable = "false"
menu_timedate_enable = "true"
menu_core_enable = "true"
menu_dynamic_wallpaper_enable = "false"
menu_thumbnails = "3"
video_vsync = "true"
video_max_swapchain_images = "3"
video_hard_sync = "false"
video_hard_sync_frames = "0"
video_frame_delay = "0"
video_black_frame_insertion = "false"
video_disable_composition = "false"
pause_nonactive = "true"
video_swap_interval = "1"
video_gpu_screenshot = "true"
video_rotation = "0"
screenshot_directory = ":\screenshots"
auto_screenshot_filename = "true"
aspect_ratio_index = "21"
core_updater_buildbot_url = "http://buildbot.libretro.com/nightly/win-x86_64/latest/"
core_updater_buildbot_assets_url = "http://buildbot.libretro.com/assets/"
core_updater_auto_extract_archive = "true"
camera_allow = "false"
cheevos_enable = "false"
cheevos_test_unofficial = "false"
cheevos_hardcore_mode_enable = "false"
audio_rate_control = "true"
audio_rate_control_delta = "0.005000"
audio_max_timing_skew = "0.050000"
audio_volume = "0.000000"
audio_driver = "xaudio"
audio_enable = "true"
audio_mute_enable = "false"
audio_out_rate = "48000"
location_allow = "false"
video_font_size = "32.000000"
video_font_enable = "true"
video_message_color = "ffff00"
ups_pref = "false"
bps_pref = "false"
ips_pref = "false"
system_directory = ":\system"
input_remapping_directory = ":\config/remaps"
video_shader_dir = ":\shaders"
video_filter_dir = ":\filters/video"
core_assets_directory = ":\downloads"
assets_directory = ":\assets"
dynamic_wallpapers_directory = ":\assets/wallpapers"
thumbnails_directory = ":	humbnails"
playlist_directory = ":\playlists"
rgui_browser_directory = "default"
rgui_config_directory = ":\config"
joypad_autoconfig_dir = ":\autoconfig"
overlay_directory = ":\overlays"
audio_filter_dir = ":\filters/audio"
audio_resampler = "sinc"
savefile_directory = ":\saves"
savestate_directory = ":\states"
xmb_scale_factor = "100"
xmb_alpha_factor = "75"
xmb_theme = "0"
xmb_menu_color_theme = "4"
materialui_menu_color_theme = "0"
xmb_shadows_enable = "true"
menu_shader_pipeline = "2"
rgui_show_start_screen = "false"
menu_navigation_wraparound_enable = "true"
menu_navigation_browser_filter_supported_extensions_enable = "true"
menu_show_advanced_settings = "true"
menu_entry_normal_color = "ffffffff"
menu_entry_hover_color = "ff64ff64"
menu_title_color = "ff64ff64"
content_history_size = "100"
input_autodetect_enable = "true"
input_overlay_enable = "true"
input_overlay_enable_autopreferred = "true"
input_overlay_hide_in_menu = "true"
input_overlay_opacity = "0.700000"
input_overlay_scale = "1.000000"
osk_overlay_directory = ":\overlays"
input_osk_overlay_enable = "false"
video_message_pos_x = "0.050000"
video_message_pos_y = "0.050000"
custom_viewport_x = "61"
custom_viewport_y = "1000"
gamma_correction = "false"
flicker_filter_enable = "false"
soft_filter_enable = "false"
soft_filter_index = "0"
current_resolution_id = "0"
flicker_filter_index = "0"
video_font_size = "32.000000"
block_sram_overwrite = "false"
savestate_auto_index = "false"
savestate_auto_save = "false"
savestate_auto_load = "false"
history_list_enable = "true"
network_cmd_enable = "false"
stdin_cmd_enable = "false"
network_cmd_port = "55355"
fastforward_ratio = "0.000000"
slowmotion_ratio = "3.000000"
config_save_on_exit = "true"
state_slot = "0"
netplay_spectator_mode_enable = "false"
netplay_mode = "false"
netplay_ip_port = "0"
netplay_delay_frames = "0"
user_language = "3"
custom_bgm_enable = "false"
core_specific_config = "true"
game_specific_options = "true"
auto_overrides_enable = "true"
auto_remaps_enable = "true"
sort_savefiles_enable = "false"
sort_savestates_enable = "false"
libretro_log_level = "0"
log_verbosity = "false"
perfcnt_enable = "false"
keyboard_gamepad_enable = "true"
keyboard_gamepad_mapping_type = "1"
input_poll_type_behavior = "2"
core_set_supports_no_game_enable = "true"
menu_ok_btn = "8"
menu_cancel_btn = "0"
menu_search_btn = "9"
menu_info_btn = "2"
menu_default_btn = "3"
menu_scroll_down_btn = "11"
menu_scroll_up_btn = "10"
video_fullscreen_x = "0"
video_fullscreen_y = "0"
custom_viewport_width = "957"
custom_viewport_height = "1920"
recording_output_directory = ""
recording_config_directory = ""
core_options_path = ""
bundle_assets_src_path = ""
bundle_assets_dst_path = ""
bundle_assets_dst_path_subdir = ""
menu_wallpaper = ""
video_filter = ""
audio_dsp_plugin = ""
input_overlay = ""
input_osk_overlay = ""
video_font_path = ""
content_history_dir = ""
playlist_names = ""
playlist_cores = ""
audio_device = ""
camera_device = ""
cheevos_username = ""
cheevos_password = ""
video_context_driver = ""
cache_directory = ""
resampler_directory = ""
xmb_font = ""
netplay_ip_address = ""
netplay_nickname = ""
input_keyboard_layout = ""



Sorry for my english and thanks.

yeah, it’s weird. Try using the shader’s zoom function to make it fill the screen and then use the other parameters to squish the image down to fit. Also, make sure RetroArch is set to use the 9:16 aspect ratio (i.e., not 16:9).

Ok, officially I´m stupid. Aspect_ratio_index was set 19, I changed to 22 (custom viewport) and it worked. Hunterk thanks for your help and the shader, I can fully enjoy the cocktail form factor thanks to your cocktail-table shader.