Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion res/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
#define IDC_TITLE_BAR_FORMAT 1052
#define IDC_SHRINK_BLIT_MODE_STATIC 1053
#define IDC_MAGNIFY_BLIT_MODE_STATIC 1054
#define IDC_ZOOM_OUT_PAST_BEST_FIT_CHECKBOX 1068

// Next default values for new objects
//
Expand All @@ -98,7 +99,7 @@
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 130
#define _APS_NEXT_COMMAND_VALUE 40048
#define _APS_NEXT_CONTROL_VALUE 1055
#define _APS_NEXT_CONTROL_VALUE 1069
#define _APS_NEXT_SYMED_VALUE 109
#endif
#endif
9 changes: 5 additions & 4 deletions res/voidImageViewer.rc
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ BEGIN
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,0,70,192,10
CONTROL "Preload &next image",IDC_PRELOAD_NEXT_IMAGE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,0,87,192,10
CONTROL "Cache &last image",IDC_CACHE_LAST_IMAGE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,0,103,192,10
LTEXT "&Windowed background color:",IDC_STATIC,0,122,96,8
PUSHBUTTON "",IDC_WINDOWEDBACKGROUNDCOLOR,96,120,50,14,BS_BITMAP
LTEXT "&Fullscreen background color:",IDC_STATIC,0,140,96,8
PUSHBUTTON "",IDC_FULLSCREENBACKGROUNDCOLOR,96,138,50,14,BS_BITMAP
CONTROL "Allow zooming &out past best fit",IDC_ZOOM_OUT_PAST_BEST_FIT_CHECKBOX,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,0,119,192,10
LTEXT "&Windowed background color:",IDC_STATIC,0,139,96,8
PUSHBUTTON "",IDC_WINDOWEDBACKGROUNDCOLOR,96,137,50,14,BS_BITMAP
LTEXT "&Fullscreen background color:",IDC_STATIC,0,157,96,8
PUSHBUTTON "",IDC_FULLSCREENBACKGROUNDCOLOR,96,155,50,14,BS_BITMAP
END

IDD_CONTROLS DIALOGEX 0, 0, 194, 216
Expand Down
3 changes: 3 additions & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ BYTE config_slideshow_custom_rate_type = 1; // 0 = milliseconds, 1 = seconds, 2
BYTE config_scroll_window = 1;
BYTE config_preload_next = 1;
BYTE config_cache_last = 1;
BYTE config_zoom_out_past_best_fit = 1; // allow zooming out below the best fit size (below 1:1 for images smaller than the window).
BYTE config_icm = 1;
BYTE config_show_menu = 1;
BYTE config_show_caption = 1;
Expand Down Expand Up @@ -156,6 +157,7 @@ static void _config_load_settings_by_location(const wchar_t *path,int is_root)
config_scroll_window = ini_get_int(ini,(const utf8_t *)"scroll_window",config_scroll_window);
config_preload_next = ini_get_int(ini,(const utf8_t *)"preload_next",config_preload_next);
config_cache_last = ini_get_int(ini,(const utf8_t *)"cache_last",config_cache_last);
config_zoom_out_past_best_fit = ini_get_int(ini,(const utf8_t *)"zoom_out_past_best_fit",config_zoom_out_past_best_fit);
config_icm = ini_get_int(ini,(const utf8_t *)"icm",config_icm);
config_orientation = ini_get_int(ini,(const utf8_t *)"orientation",config_orientation);
config_toolbar_move_window = ini_get_int(ini,(const utf8_t *)"toolbar_move_window",config_toolbar_move_window);
Expand Down Expand Up @@ -340,6 +342,7 @@ static void _config_save_settings_by_location(const wchar_t *path,int is_root)
_config_write_int(h,"scroll_window",config_scroll_window);
_config_write_int(h,"preload_next",config_preload_next);
_config_write_int(h,"cache_last",config_cache_last);
_config_write_int(h,"zoom_out_past_best_fit",config_zoom_out_past_best_fit);
_config_write_int(h,"icm",config_icm);
_config_write_int(h,"orientation",config_orientation);
_config_write_int(h,"toolbar_move_window",config_toolbar_move_window);
Expand Down
1 change: 1 addition & 0 deletions src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ extern BYTE config_slideshow_custom_rate_type;
extern BYTE config_scroll_window;
extern BYTE config_preload_next;
extern BYTE config_cache_last;
extern BYTE config_zoom_out_past_best_fit;
extern BYTE config_icm;
extern BYTE config_show_menu;
extern BYTE config_show_caption;
Expand Down
1 change: 1 addition & 0 deletions src/localization.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ enum
LOCALIZATION_ID_PLAY_ANIMATIONS_ONCE_STATIC,
LOCALIZATION_ID_PRELOAD_NEXT_IMAGE_STATIC,
LOCALIZATION_ID_CACHE_LAST_IMAGE_STATIC,
LOCALIZATION_ID_ZOOM_OUT_PAST_BEST_FIT_CHECKBOX,
LOCALIZATION_ID_WINDOWED_BACKGROUND_COLOR_STATIC,
LOCALIZATION_ID_FULLSCREEN_BACKGROUND_COLOR_STATIC,
LOCALIZATION_ID_LEFT_CLICK_ACTION_STATIC,
Expand Down
1 change: 1 addition & 0 deletions src/localization_en_us.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ static const utf8_t *_localization_string_array_en_us[LOCALIZATION_ID_COUNT] =
"&Play animations at least once in slideshow", // LOCALIZATION_ID_PLAY_ANIMATIONS_ONCE_STATIC,
"Preload &next image", // LOCALIZATION_ID_PRELOAD_NEXT_IMAGE_STATIC,
"Cache &last image", // LOCALIZATION_ID_CACHE_LAST_IMAGE_STATIC,
"Allow zooming &out past best fit", // LOCALIZATION_ID_ZOOM_OUT_PAST_BEST_FIT_CHECKBOX,
"&Windowed background color:", // LOCALIZATION_ID_WINDOWED_BACKGROUND_COLOR_STATIC,
"&Fullscreen background color:", // LOCALIZATION_ID_FULLSCREEN_BACKGROUND_COLOR_STATIC,
"&Left click action:", // LOCALIZATION_ID_LEFT_CLICK_ACTION_STATIC,
Expand Down
1 change: 1 addition & 0 deletions src/localization_zh_cn.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ static const utf8_t *_localization_string_array_zh_cn[LOCALIZATION_ID_COUNT] =
"在幻灯片中至少播放一次动画(&P)", // LOCALIZATION_ID_PLAY_ANIMATIONS_ONCE_STATIC,
"预加载下一张图像(&N)", // LOCALIZATION_ID_PRELOAD_NEXT_IMAGE_STATIC,
"缓存最后一张图像(&L)", // LOCALIZATION_ID_CACHE_LAST_IMAGE_STATIC,
"允许缩小到最佳适应尺寸以下(&O)", // LOCALIZATION_ID_ZOOM_OUT_PAST_BEST_FIT_CHECKBOX,
"窗口背景颜色(&W):", // LOCALIZATION_ID_WINDOWED_BACKGROUND_COLOR_STATIC,
"全屏背景颜色(&F):", // LOCALIZATION_ID_FULLSCREEN_BACKGROUND_COLOR_STATIC,
"左键操作(&L):", // LOCALIZATION_ID_LEFT_CLICK_ACTION_STATIC,
Expand Down
Loading