1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

Add osd_canvas_width/height variables (#12164)

This commit is contained in:
Steve Evans 2023-01-10 02:25:22 +00:00 committed by GitHub
parent 7dd0f60544
commit 1e3fcbfcee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 54 additions and 11 deletions

View file

@ -4087,6 +4087,14 @@ static mspResult_e mspCommonProcessInCommand(mspDescriptor_t srcDesc, int16_t cm
video_system = VIDEO_SYSTEM_AUTO;
}
#endif
if ((video_system == VIDEO_SYSTEM_HD) && (vcdProfile()->video_system != VIDEO_SYSTEM_HD)) {
// If switching to HD, don't wait for the VTX to communicate the correct resolution, just
// increase the canvas size to the HD default as that is what the user will expect
osdConfigMutable()->canvas_cols = OSD_HD_COLS;
osdConfigMutable()->canvas_rows = OSD_HD_ROWS;
}
vcdProfileMutable()->video_system = video_system;
osdConfigMutable()->units = sbufReadU8(src);