changeset 34707:0a4b7681a408

Update GUI code after r34792. Allow using a cache size of up to 4 TB.
author ib
date Sun, 04 Mar 2012 15:37:30 +0000
parents 77e7fb1562af
children c4c333e49d29
files gui/cfg.c gui/ui/gtk/preferences.c gui/win32/preferences.c gui/win32/wincfg.c
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/cfg.c	Sun Mar 04 15:11:50 2012 +0000
+++ b/gui/cfg.c	Sun Mar 04 15:37:30 2012 +0000
@@ -105,7 +105,7 @@
 
 static const m_option_t gui_opts[] = {
     { "cache",                       &gtkCacheOn,              CONF_TYPE_FLAG,        0,           0,     1,       NULL },
-    { "cache_size",                  &gtkCacheSize,            CONF_TYPE_INT,         CONF_RANGE,  32,    1048576, NULL },
+    { "cache_size",                  &gtkCacheSize,            CONF_TYPE_INT,         CONF_RANGE,  32,    0x7fffffff, NULL },
 
     { "vf_pp",                       &gtkVfPP,                 CONF_TYPE_FLAG,        0,           0,     1,       NULL },
 
--- a/gui/ui/gtk/preferences.c	Sun Mar 04 15:11:50 2012 +0000
+++ b/gui/ui/gtk/preferences.c	Sun Mar 04 15:37:30 2012 +0000
@@ -1248,7 +1248,7 @@
 
   AddLabel( MSGTR_PREFERENCES_CacheSize,hbox5 );
 
-  SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( gtkCacheSize,32,1048576,1,32,0 ) );
+  SBCacheadj=GTK_ADJUSTMENT( gtk_adjustment_new( gtkCacheSize,32,0x7fffffff,1,32,0 ) );
   SBCache=gtk_spin_button_new( GTK_ADJUSTMENT( SBCacheadj ),1,0 );
   gtk_widget_show( SBCache );
   gtk_box_pack_start( GTK_BOX( hbox5 ),SBCache,TRUE,TRUE,0 );
--- a/gui/win32/preferences.c	Sun Mar 04 15:11:50 2012 +0000
+++ b/gui/win32/preferences.c	Sun Mar 04 15:37:30 2012 +0000
@@ -323,7 +323,7 @@
                                           ID_UPDOWN1,
                                           ((LPCREATESTRUCT) lParam) -> hInstance,
                                           (HWND)edit1, 0, 0, 0);
-            SendDlgItemMessage(hwnd, ID_UPDOWN1, UDM_SETRANGE32, (WPARAM)0, (LPARAM)65535);
+            SendDlgItemMessage(hwnd, ID_UPDOWN1, UDM_SETRANGE32, (WPARAM)32, (LPARAM)0x7fffffff);
 
             /* autosync */
             edit2 = CreateWindowEx(WS_EX_CLIENTEDGE, "edit", "autosync",
--- a/gui/win32/wincfg.c	Sun Mar 04 15:11:50 2012 +0000
+++ b/gui/win32/wincfg.c	Sun Mar 04 15:37:30 2012 +0000
@@ -74,7 +74,7 @@
     {   "delay", &audio_delay, CONF_TYPE_FLOAT, CONF_RANGE, -100.0, 100.0, NULL},
     {   "osd_level", &osd_level, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL },
     {   "cache", &gtkCacheOn, CONF_TYPE_FLAG, 0, 0, 1, NULL },
-    {   "cache_size", &gtkCacheSize, CONF_TYPE_INT, CONF_RANGE, -1, 65535, NULL },
+    {   "cache_size", &gtkCacheSize, CONF_TYPE_INT, CONF_RANGE, 32, 0x7fffffff, NULL },
     {   "autosync", &gtkAutoSyncOn, CONF_TYPE_FLAG, 0, 0, 1, NULL },
     {   "autosync_size", &gtkAutoSync, CONF_TYPE_INT, CONF_RANGE, 0, 10000, NULL },
     {   "gui_skin", &skinName, CONF_TYPE_STRING, 0, 0, 0, NULL },