kopia lustrzana https://github.com/hoglet67/RGBtoHDMI
Reduce menu widths to allow longer profile names & fix error introduced in fb adjustment
rodzic
08ee1a362c
commit
b80c11edc7
|
@ -175,10 +175,10 @@ enum {
|
|||
};
|
||||
|
||||
static param_t features[] = {
|
||||
{ F_AUTOSWITCH, "Auto Switching", "auto_switching", 0, NUM_AUTOSWITCHES - 1, 1 },
|
||||
{ F_RESOLUTION,"Output Resolution","output_resolution", 0, 0, 1 },
|
||||
{ F_AUTOSWITCH, "Auto Switch", "auto_switching", 0, NUM_AUTOSWITCHES - 1, 1 },
|
||||
{ F_RESOLUTION, "Resolution","output_resolution", 0, 0, 1 },
|
||||
{ F_INTERPOLATION, "Interpolation", "interpolation", 0,NUM_INTERPOLATION - 1, 1 },
|
||||
{ F_PROFILE, "Computer Profile", "computer_profile", 0, 0, 1 },
|
||||
{ F_PROFILE, "Profile", "computer_profile", 0, 0, 1 },
|
||||
{ F_SUBPROFILE, "Sub-Profile", "sub-profile", 0, 0, 1 },
|
||||
{ F_PALETTE, "Palette", "palette", 0, NUM_PALETTES - 1, 1 },
|
||||
{ F_PALETTECONTROL, "Palette Control", "palette_control", 0, NUM_CONTROLS - 1, 1 },
|
||||
|
|
|
@ -1579,8 +1579,8 @@ void calculate_fb_adjustment() {
|
|||
if (capinfo->h_adjust < 0) {
|
||||
capinfo->h_adjust = 0;
|
||||
}
|
||||
capinfo->h_adjust = capinfo->h_adjust << (capinfo->bpp == 8 ? 2 : 1);
|
||||
|
||||
capinfo->h_adjust = (capinfo->h_adjust >> 1) << (capinfo->bpp == 8 ? 3 : 2);
|
||||
//log_info("adjust=%d, %d", capinfo->h_adjust, capinfo->v_adjust);
|
||||
}
|
||||
|
||||
|
@ -1760,7 +1760,7 @@ void rgb_to_hdmi_main() {
|
|||
reboot();
|
||||
}
|
||||
|
||||
log_debug("Entering rgb_to_fb, flags=%08x", flags);
|
||||
log_info("Entering rgb_to_fb, flags=%08x", flags);
|
||||
result = rgb_to_fb(capinfo, flags);
|
||||
log_debug("Leaving rgb_to_fb, result=%04x", result);
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue