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 |
|
|
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; |
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 : |