Files
Main_MiSTer/input.cpp
José Manuel Barroso Galindo 7a7bef3d06 Add video_mode FIFO command for CRT video mode switching (#1107)
* Add video_mode FIFO command for CRT video mode switching

- video.cpp: Add video_mode_cmd() that parses custom modelines and
  applies them via video_set_mode(), with hfreq safety check blocking
  modes outside 15625-16500Hz to protect 15kHz CRT monitors
- video.h: Declare video_mode_cmd()
- input.cpp: Dispatch "video_mode" commands from MiSTer_cmd FIFO
  to video_mode_cmd()

* Remove hfreq guard from video_mode_cmd

The horizontal frequency check was limiting the command to 15kHz modes only. Removing it allows custom modelines with any frequency to be applied. Software at the other end must take care of not calling this API with unsafe frequencies.
2026-03-04 14:39:07 +08:00

166 KiB