--- trunk/xvidcore/dshow/src/config.c 2008/11/28 20:51:04 1826 +++ trunk/xvidcore/dshow/src/config.c 2008/11/30 16:38:31 1827 @@ -19,7 +19,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $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 $ * ****************************************************************************/ @@ -95,7 +95,7 @@ -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) { HWND hBrightness; @@ -103,22 +103,22 @@ { case WM_DESTROY: { - int nForceColorspace; - int aspect_ratio; + LPARAM nForceColorspace; + LPARAM aspect_ratio; nForceColorspace = SendMessage(GetDlgItem(hwnd, IDC_COLORSPACE), CB_GETCURSEL, 0, 0); if ( g_config.nForceColorspace != nForceColorspace ) { 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); } - g_config.nForceColorspace = nForceColorspace; + g_config.nForceColorspace = (int) nForceColorspace; aspect_ratio = SendMessage(GetDlgItem(hwnd, IDC_USE_AR), CB_GETCURSEL, 0, 0); if ( g_config.aspect_ratio != aspect_ratio ) { 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); } - g_config.aspect_ratio = aspect_ratio; + g_config.aspect_ratio = (int) aspect_ratio; SaveRegistryInfo(); } break; @@ -237,7 +237,7 @@ break; case WM_NOTIFY: hBrightness = GetDlgItem(hwnd, IDC_BRIGHTNESS); - g_config.nBrightness = SendMessage(hBrightness, TBM_GETPOS, (WPARAM)NULL, (LPARAM)NULL); + g_config.nBrightness = (int) SendMessage(hBrightness, TBM_GETPOS, (WPARAM)NULL, (LPARAM)NULL); SaveRegistryInfo(); break; default :