[svn] / trunk / xvidcore / dshow / src / config.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/dshow/src/config.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1636, Sun Sep 18 01:34:13 2005 UTC revision 1912, Sat Dec 18 10:17:35 2010 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: config.c,v 1.8 2005-09-18 01:34:13 suxen_drol Exp $   * $Id: config.c,v 1.11 2010-12-18 10:16:46 Isibaar Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 54  Line 54 
54          REG_GET_N("Supported_4CC",  g_config.supported_4cc, 0)          REG_GET_N("Supported_4CC",  g_config.supported_4cc, 0)
55          REG_GET_N("Videoinfo_Compat",  g_config.videoinfo_compat, 0)          REG_GET_N("Videoinfo_Compat",  g_config.videoinfo_compat, 0)
56          REG_GET_N("Decoder_Aspect_Ratio",  g_config.aspect_ratio, 0)          REG_GET_N("Decoder_Aspect_Ratio",  g_config.aspect_ratio, 0)
57            REG_GET_N("num_threads",  g_config.num_threads, 0)
58    
59          RegCloseKey(hKey);          RegCloseKey(hKey);
60  }  }
# Line 95  Line 96 
96    
97    
98    
99  BOOL CALLBACK adv_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)  INT_PTR CALLBACK adv_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
100  {  {
101          HWND hBrightness;          HWND hBrightness;
102    
# Line 103  Line 104 
104          {          {
105          case WM_DESTROY:          case WM_DESTROY:
106                  {                  {
107                          int nForceColorspace;                          LPARAM nForceColorspace;
108                          int aspect_ratio;                          LPARAM aspect_ratio;
109    
110                          nForceColorspace = SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_GETCURSEL, 0, 0);                          nForceColorspace = SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_GETCURSEL, 0, 0);
111                          if ( g_config.nForceColorspace != nForceColorspace )                          if ( g_config.nForceColorspace != nForceColorspace )
112                          {                          {
113                                  MessageBox(0, "You have changed the output colorspace.\r\nClose the movie and open it for the new colorspace to take effect.", "XviD DShow", MB_TOPMOST);                                  MessageBox(0, "You have changed the output colorspace.\r\nClose the movie and open it for the new colorspace to take effect.", "Xvid DShow", MB_TOPMOST);
114                          }                          }
115                          g_config.nForceColorspace = nForceColorspace;                          g_config.nForceColorspace = (int) nForceColorspace;
116    
117                          aspect_ratio = SendMessage(GetDlgItem(hwnd, IDC_USE_AR), CB_GETCURSEL, 0, 0);                          aspect_ratio = SendMessage(GetDlgItem(hwnd, IDC_USE_AR), CB_GETCURSEL, 0, 0);
118                          if ( g_config.aspect_ratio != aspect_ratio )                          if ( g_config.aspect_ratio != aspect_ratio )
119                          {                          {
120                                  MessageBox(0, "You have changed the default aspect ratio.\r\nClose the movie and open it for the new aspect ratio to take effect.", "XviD DShow", MB_TOPMOST);                                  MessageBox(0, "You have changed the default aspect ratio.\r\nClose the movie and open it for the new aspect ratio to take effect.", "Xvid DShow", MB_TOPMOST);
121                          }                          }
122                          g_config.aspect_ratio = aspect_ratio;                          g_config.aspect_ratio = (int) aspect_ratio;
123                          SaveRegistryInfo();                          SaveRegistryInfo();
124                  }                  }
125                  break;                  break;
# Line 237  Line 238 
238                  break;                  break;
239          case WM_NOTIFY:          case WM_NOTIFY:
240                  hBrightness = GetDlgItem(hwnd, IDC_BRIGHTNESS);                  hBrightness = GetDlgItem(hwnd, IDC_BRIGHTNESS);
241                  g_config.nBrightness = SendMessage(hBrightness, TBM_GETPOS, (WPARAM)NULL, (LPARAM)NULL);                  g_config.nBrightness = (int) SendMessage(hBrightness, TBM_GETPOS, (WPARAM)NULL, (LPARAM)NULL);
242                  SaveRegistryInfo();                  SaveRegistryInfo();
243                  break;                  break;
244          default :          default :

Legend:
Removed from v.1636  
changed lines
  Added in v.1912

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4