mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
Windows: Attempt to remove unused minimum GIF delay option.
This commit is contained in:
parent
62a32a2a8a
commit
cbaf33e02d
@ -230,13 +230,6 @@ static BOOL CALLBACK options_appearance_dialog_handler(HWND hwnd,
|
||||
sub = GetDlgItem(hwnd, IDC_PREFS_NOANIMATION);
|
||||
SendMessage(sub, BM_SETCHECK, (WPARAM)((nsoption_bool(animate_images))
|
||||
? BST_UNCHECKED : BST_CHECKED), 0);
|
||||
|
||||
if (nsoption_int(minimum_gif_delay) != 0) {
|
||||
sub = GetDlgItem(hwnd, IDC_PREFS_ANIMATIONDELAY);
|
||||
snprintf(number, 6, "%.1f", nsoption_int(minimum_gif_delay) /
|
||||
100.0);
|
||||
SendMessage(sub, WM_SETTEXT, 0, (LPARAM)number);
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_NOTIFY:
|
||||
@ -268,18 +261,6 @@ static BOOL CALLBACK options_appearance_dialog_handler(HWND hwnd,
|
||||
nsoption_set_bool(animate_images,
|
||||
(IsDlgButtonChecked(hwnd, IDC_PREFS_NOANIMATION) == BST_CHECKED) ? true : false);
|
||||
|
||||
|
||||
sub = GetDlgItem(hwnd, IDC_PREFS_ANIMATIONDELAY);
|
||||
len = SendMessage(sub, WM_GETTEXTLENGTH, 0, 0);
|
||||
temp = malloc(len + 1);
|
||||
if (temp != NULL) {
|
||||
SendMessage(sub, WM_GETTEXT, (WPARAM)
|
||||
(len + 1), (LPARAM) temp);
|
||||
nsoption_set_int(minimum_gif_delay,
|
||||
(int)(100 * strtod(temp, NULL)));
|
||||
free(temp);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case UDN_DELTAPOS: {
|
||||
@ -292,11 +273,6 @@ static BOOL CALLBACK options_appearance_dialog_handler(HWND hwnd,
|
||||
case IDC_PREFS_FONT_MINSIZE_SPIN:
|
||||
change_spinner(GetDlgItem(hwnd, IDC_PREFS_FONT_MINSIZE), 0.1 * ud->iDelta, 1.0, 50.0);
|
||||
return TRUE;
|
||||
|
||||
case IDC_PREFS_ANIMATIONDELAY_SPIN:
|
||||
change_spinner(GetDlgItem(hwnd, IDC_PREFS_ANIMATIONDELAY), 0.1 * ud->iDelta, 0.1, 100.0);
|
||||
return TRUE;
|
||||
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -242,9 +242,6 @@ FONT 8, "MS Shell Dlg", 0, 0, 1
|
||||
LTEXT "Animation", IDC_STATIC, 7, 148, 36, 8, NOT WS_GROUP | SS_LEFT, WS_EX_LEFT
|
||||
CONTROL "", IDC_STATIC, WC_STATIC, SS_ETCHEDFRAME, 43, 152, 170, 1, WS_EX_LEFT
|
||||
AUTOCHECKBOX "Disable", IDC_PREFS_NOANIMATION, 43, 163, 39, 10, 0, WS_EX_LEFT
|
||||
LTEXT "Minimum delay:", IDC_STATIC, 55, 180, 56, 8, SS_LEFT, WS_EX_LEFT
|
||||
EDITTEXT IDC_PREFS_ANIMATIONDELAY, 113, 177, 35, 14, NOT WS_BORDER, WS_EX_CLIENTEDGE
|
||||
CONTROL "Min delay", IDC_PREFS_ANIMATIONDELAY_SPIN, UPDOWN_CLASS, UDS_ALIGNRIGHT | UDS_AUTOBUDDY, 43, 210, 11, 15, WS_EX_LEFT
|
||||
}
|
||||
|
||||
|
||||
|
@ -88,8 +88,6 @@
|
||||
#define IDC_PREFS_FANTASY 1219
|
||||
#define IDC_PREFS_FONTDEF 1220
|
||||
#define IDC_PREFS_NOANIMATION 1227
|
||||
#define IDC_PREFS_ANIMATIONDELAY 1228
|
||||
#define IDC_PREFS_ANIMATIONDELAY_SPIN 1229
|
||||
|
||||
#define IDD_SSLCERT 1600
|
||||
#define IDC_SSLCERT_IMG1 1601
|
||||
|
Loading…
Reference in New Issue
Block a user