From 40b0d9e0d21748aa465ef96674f407fc11d20f40 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Fri, 11 May 2018 09:29:14 +0100 Subject: [PATCH] [ui] minor cosmetic improvements --- src/rufus.c | 47 ++++++++++++++++++++++++----------------------- src/rufus.rc | 10 +++++----- src/ui.h | 11 +++++++++++ 3 files changed, 40 insertions(+), 28 deletions(-) diff --git a/src/rufus.c b/src/rufus.c index c8612287..c5576a19 100644 --- a/src/rufus.c +++ b/src/rufus.c @@ -68,7 +68,6 @@ static BOOL allowed_filesystem[FS_MAX] = { 0 }; static int64_t last_iso_blocking_status; static int windows_to_go_selection = 0, selected_pt = -1, selected_fs = -1; static int selection_default, row_height, advanced_device_section_height, advanced_format_section_height, image_index; -static int device_vpos, format_vpos, status_vpos; static int ddh, bw, hw, fw; // DropDown Height, Main button width, half dropdown width, full dropdown width static int sw, mw, bsw, sbw, ssw, tw, dbw; // See GetFullWidth() for details on how these values are used static UINT_PTR UM_LANGUAGE_MENU_MAX = UM_LANGUAGE_MENU; @@ -1201,8 +1200,8 @@ static void ToggleAdvancedDeviceOptions(BOOL enable) if (!enable) shift = -shift; - format_vpos += shift; - status_vpos += shift; + section_vpos[1] += shift; + section_vpos[2] += shift; // Toggle the Hide/Show toolbar text utf8_to_wchar_no_alloc(lmprintf((enable) ? MSG_122 : MSG_121, lmprintf(MSG_119)), wtbtext[0], ARRAYSIZE(wtbtext[0])); @@ -1245,7 +1244,7 @@ static void ToggleAdvancedFormatOptions(BOOL enable) if (!enable) shift = -shift; - status_vpos += shift; + section_vpos[2] += shift; // Toggle the Hide/Show toolbar text utf8_to_wchar_no_alloc(lmprintf((enable) ? MSG_122 : MSG_121, lmprintf(MSG_120)), wtbtext[1], ARRAYSIZE(wtbtext[0])); @@ -1287,8 +1286,8 @@ static void ToggleImageOption(void) display_togo_option = !display_togo_option; if (!display_togo_option) shift = -shift; - format_vpos += shift; - status_vpos += shift; + section_vpos[1] += shift; + section_vpos[2] += shift; // Move the controls up or down for (i = 0; i