mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
* Prepare to update deps/switchres * Squashed 'deps/switchres/' content from commit ca72648b32 git-subtree-dir: deps/switchres git-subtree-split: ca72648b3253eca8c5addf64d1e4aa1c43f5db94 * Add CRT modeswitching to KMS Display the real refresh rate Enable the CRT SwitchRes menu Add another switchres.ini path for Lakka
32 lines
525 B
C++
32 lines
525 B
C++
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <switchres/switchres_wrapper.h>
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
sr_mode srm;
|
|
int ret;
|
|
|
|
sr_init();
|
|
sr_set_log_level(3);
|
|
|
|
sr_set_disp(-1);
|
|
sr_set_monitor("arcade_31");
|
|
sr_init_disp("0", NULL);
|
|
|
|
sr_set_disp(-1);
|
|
sr_set_monitor("pc_31_120");
|
|
sr_init_disp("1", NULL);
|
|
|
|
sr_set_disp(0);
|
|
ret = sr_switch_to_mode(640, 480, 57, 0, &srm);
|
|
|
|
sr_set_disp(1);
|
|
ret = sr_switch_to_mode(320, 240, 58, 0, &srm);
|
|
|
|
printf("Press any key to quit.\n");
|
|
getchar();
|
|
|
|
sr_deinit();
|
|
}
|