removed unnecessary #include "windows.h" from "highgui_c.h"

This commit is contained in:
Vadim Pisarevsky
2011-05-13 19:40:57 +00:00
parent 9d787afe72
commit 5199cd9c95
3 changed files with 15 additions and 18 deletions

View File

@@ -1671,23 +1671,18 @@ CV_IMPL const char* cvGetWindowName( void* window_handle )
}
typedef int (CV_CDECL * CvWin32WindowCallback)(HWND, UINT, WPARAM, LPARAM, int*);
CV_IMPL void
cvSetPreprocessFuncWin32(int (__cdecl *on_preprocess)(HWND, UINT, WPARAM, LPARAM, int*))
cvSetPreprocessFuncWin32_(const void* callback)
{
if(on_preprocess)
hg_on_preprocess = on_preprocess;
else
assert(on_preprocess);
hg_on_preprocess = (CvWin32WindowCallback)callback;
}
CV_IMPL void
cvSetPostprocessFuncWin32(int (__cdecl *on_postprocess)(HWND, UINT, WPARAM, LPARAM, int*))
cvSetPostprocessFuncWin32_(const void* callback)
{
if(on_postprocess)
hg_on_postprocess = on_postprocess;
else
assert(on_postprocess);
hg_on_postprocess = (CvWin32WindowCallback)callback;
}
#endif //WIN32