[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 2021, Wed Jul 6 10:25:14 2011 UTC revision 2022, Wed Jul 6 13:50:28 2011 UTC
# Line 57  Line 57 
57          REG_GET_N(TEXT("Decoder_Aspect_Ratio"),  g_config.aspect_ratio, 0)          REG_GET_N(TEXT("Decoder_Aspect_Ratio"),  g_config.aspect_ratio, 0)
58          REG_GET_N(TEXT("num_threads"),  g_config.num_threads, 0)          REG_GET_N(TEXT("num_threads"),  g_config.num_threads, 0)
59          REG_GET_N(TEXT("cpu_flags"), g_config.cpu, 0)          REG_GET_N(TEXT("cpu_flags"), g_config.cpu, 0)
60            REG_GET_N(TEXT("Tray_Icon"), g_config.bTrayIcon, 1);
61    
62          RegCloseKey(hKey);          RegCloseKey(hKey);
63  }  }
# Line 93  Line 94 
94          REG_SET_N(TEXT("Videoinfo_Compat"),  g_config.videoinfo_compat);          REG_SET_N(TEXT("Videoinfo_Compat"),  g_config.videoinfo_compat);
95          REG_SET_N(TEXT("Decoder_Aspect_Ratio"), g_config.aspect_ratio);          REG_SET_N(TEXT("Decoder_Aspect_Ratio"), g_config.aspect_ratio);
96          REG_SET_N(TEXT("num_threads"),  g_config.num_threads);          REG_SET_N(TEXT("num_threads"),  g_config.num_threads);
97            REG_SET_N(TEXT("Tray_Icon"), g_config.bTrayIcon);
98    
99          RegCloseKey(hKey);          RegCloseKey(hKey);
100  }  }
# Line 196  Line 198 
198                  SendMessage(GetDlgItem(hwnd, IDC_MP4V), BM_SETCHECK, g_config.supported_4cc & SUPPORT_MP4V, 0);                  SendMessage(GetDlgItem(hwnd, IDC_MP4V), BM_SETCHECK, g_config.supported_4cc & SUPPORT_MP4V, 0);
199                  SendMessage(GetDlgItem(hwnd, IDC_COMPAT), BM_SETCHECK, g_config.videoinfo_compat, 0);                  SendMessage(GetDlgItem(hwnd, IDC_COMPAT), BM_SETCHECK, g_config.videoinfo_compat, 0);
200    
201                    // TrayIcon
202                    SendMessage(GetDlgItem(hwnd, IDC_TRAYICON), BM_SETCHECK, g_config.bTrayIcon, 0);
203    
204                  EnableWindow(GetDlgItem(hwnd,IDC_DERINGY),g_config.nDeblock_Y);                  EnableWindow(GetDlgItem(hwnd,IDC_DERINGY),g_config.nDeblock_Y);
205                  EnableWindow(GetDlgItem(hwnd,IDC_DERINGUV),g_config.nDeblock_UV);                  EnableWindow(GetDlgItem(hwnd,IDC_DERINGUV),g_config.nDeblock_UV);
206    
# Line 210  Line 215 
215                  {                  {
216                  case IDC_RESET:                  case IDC_RESET:
217                          ZeroMemory(&g_config, sizeof(CONFIG));                          ZeroMemory(&g_config, sizeof(CONFIG));
218                            g_config.bTrayIcon = 1;
219    
220                          hBrightness = GetDlgItem(hwnd, IDC_BRIGHTNESS);                          hBrightness = GetDlgItem(hwnd, IDC_BRIGHTNESS);
221                          SendMessage(hBrightness, TBM_SETPOS, (WPARAM) TRUE, (LPARAM) g_config.nBrightness);                          SendMessage(hBrightness, TBM_SETPOS, (WPARAM) TRUE, (LPARAM) g_config.nBrightness);
222    
223                          // Load Buttons                          // Load Buttons
224                          SendMessage(GetDlgItem(hwnd, IDC_DEBLOCK_Y), BM_SETCHECK, g_config.nDeblock_Y, 0);                          SendMessage(GetDlgItem(hwnd, IDC_DEBLOCK_Y), BM_SETCHECK, g_config.nDeblock_Y, 0);
225                          SendMessage(GetDlgItem(hwnd, IDC_DEBLOCK_UV), BM_SETCHECK, g_config.nDeblock_UV, 0);                          SendMessage(GetDlgItem(hwnd, IDC_DEBLOCK_UV), BM_SETCHECK, g_config.nDeblock_UV, 0);
# Line 223  Line 231 
231                          SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_SETCURSEL, g_config.nForceColorspace, 0);                          SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_SETCURSEL, g_config.nForceColorspace, 0);
232                          g_config.aspect_ratio = 0;                          g_config.aspect_ratio = 0;
233                          SendMessage(GetDlgItem(hwnd, IDC_USE_AR), CB_SETCURSEL, g_config.aspect_ratio, 0);                          SendMessage(GetDlgItem(hwnd, IDC_USE_AR), CB_SETCURSEL, g_config.aspect_ratio, 0);
234                            SendMessage(GetDlgItem(hwnd, IDC_TRAYICON), CB_SETCURSEL, g_config.bTrayIcon, 0);
235                          break;                          break;
236                  case IDC_DEBLOCK_Y:                  case IDC_DEBLOCK_Y:
237                          g_config.nDeblock_Y = !g_config.nDeblock_Y;                          g_config.nDeblock_Y = !g_config.nDeblock_Y;
# Line 254  Line 263 
263                  case IDC_COMPAT:                  case IDC_COMPAT:
264                          g_config.videoinfo_compat = !g_config.videoinfo_compat;                          g_config.videoinfo_compat = !g_config.videoinfo_compat;
265                          break;                          break;
266                    case IDC_TRAYICON:
267                            g_config.bTrayIcon = !g_config.bTrayIcon;
268                            break;
269                  default :                  default :
270                          return FALSE;                          return FALSE;
271                  }                  }

Legend:
Removed from v.2021  
changed lines
  Added in v.2022

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