[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 1802, Wed Nov 26 10:11:31 2008 UTC revision 1827, Sun Nov 30 16:38:31 2008 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.9 2008-11-26 10:11:31 Isibaar Exp $   * $Id: config.c,v 1.10 2008-11-30 16:36:44 Isibaar Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 95  Line 95 
95    
96    
97    
98  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)
99  {  {
100          HWND hBrightness;          HWND hBrightness;
101    
# Line 103  Line 103 
103          {          {
104          case WM_DESTROY:          case WM_DESTROY:
105                  {                  {
106                          int nForceColorspace;                          LPARAM nForceColorspace;
107                          int aspect_ratio;                          LPARAM aspect_ratio;
108    
109                          nForceColorspace = SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_GETCURSEL, 0, 0);                          nForceColorspace = SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_GETCURSEL, 0, 0);
110                          if ( g_config.nForceColorspace != nForceColorspace )                          if ( g_config.nForceColorspace != nForceColorspace )
111                          {                          {
112                                  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);
113                          }                          }
114                          g_config.nForceColorspace = nForceColorspace;                          g_config.nForceColorspace = (int) nForceColorspace;
115    
116                          aspect_ratio = SendMessage(GetDlgItem(hwnd, IDC_USE_AR), CB_GETCURSEL, 0, 0);                          aspect_ratio = SendMessage(GetDlgItem(hwnd, IDC_USE_AR), CB_GETCURSEL, 0, 0);
117                          if ( g_config.aspect_ratio != aspect_ratio )                          if ( g_config.aspect_ratio != aspect_ratio )
118                          {                          {
119                                  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);
120                          }                          }
121                          g_config.aspect_ratio = aspect_ratio;                          g_config.aspect_ratio = (int) aspect_ratio;
122                          SaveRegistryInfo();                          SaveRegistryInfo();
123                  }                  }
124                  break;                  break;
# Line 237  Line 237 
237                  break;                  break;
238          case WM_NOTIFY:          case WM_NOTIFY:
239                  hBrightness = GetDlgItem(hwnd, IDC_BRIGHTNESS);                  hBrightness = GetDlgItem(hwnd, IDC_BRIGHTNESS);
240                  g_config.nBrightness = SendMessage(hBrightness, TBM_GETPOS, (WPARAM)NULL, (LPARAM)NULL);                  g_config.nBrightness = (int) SendMessage(hBrightness, TBM_GETPOS, (WPARAM)NULL, (LPARAM)NULL);
241                  SaveRegistryInfo();                  SaveRegistryInfo();
242                  break;                  break;
243          default :          default :

Legend:
Removed from v.1802  
changed lines
  Added in v.1827

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