mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-20 18:05:21 -04:00
[core] display a notice about Legacy in the protective MBR for GPT
* This should help Windows users who create a GPT/UEFI drive and try to use it in BIOS/Legacy * Also make sure that we take into account the split space for both "SELECT" and "DOWNLOAD"
This commit is contained in:
parent
789373ed59
commit
28c1d6eb31
11 changed files with 200 additions and 10 deletions
6
src/ui.c
6
src/ui.c
|
@ -155,8 +155,10 @@ void GetMainButtonsWidth(HWND hDlg)
|
|||
MapWindowPoints(NULL, hDlg, (POINT*)&rc, 2);
|
||||
bw = rc.right - rc.left;
|
||||
|
||||
for (i = 0; i < ARRAYSIZE(main_button_ids); i++)
|
||||
bw = max(bw, GetTextWidth(hDlg, main_button_ids[i]) + cbw);
|
||||
for (i = 0; i < ARRAYSIZE(main_button_ids); i++) {
|
||||
// Make sure we add extra space for the SELECT split button (i == 0) if Fido is enabled
|
||||
bw = max(bw, GetTextWidth(hDlg, main_button_ids[i]) + ((enable_fido && i == 0) ? (3 * cbw) / 2 : cbw));
|
||||
}
|
||||
// The 'CLOSE' button is also be used to display 'CANCEL' and we sometimes
|
||||
// want to add "DOWNLOAD" into the Select split button => measure that too.
|
||||
bw = max(bw, GetTextSize(GetDlgItem(hDlg, IDCANCEL), lmprintf(MSG_007)).cx + cbw);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue