Merged the trunk r8589:8653 - all changes related to build warnings
This commit is contained in:
@@ -55,16 +55,6 @@
|
||||
#include <GL/glu.h>
|
||||
#endif
|
||||
|
||||
/*#if _MSC_VER >= 1200
|
||||
#pragma warning( disable: 4505 )
|
||||
#pragma comment(lib,"gtk-win32-2.0.lib")
|
||||
#pragma comment(lib,"glib-2.0.lib")
|
||||
#pragma comment(lib,"gobject-2.0.lib")
|
||||
#pragma comment(lib,"gdk-win32-2.0.lib")
|
||||
#pragma comment(lib,"gdk_pixbuf-2.0.lib")
|
||||
#endif*/
|
||||
|
||||
|
||||
// TODO Fix the initial window size when flags=0. Right now the initial window is by default
|
||||
// 320x240 size. A better default would be actual size of the image. Problem
|
||||
// is determining desired window size with trackbars while still allowing resizing.
|
||||
@@ -1372,17 +1362,17 @@ cvDestroyAllWindows( void )
|
||||
CV_UNLOCK_MUTEX();
|
||||
}
|
||||
|
||||
CvSize icvCalcOptimalWindowSize( CvWindow * window, CvSize new_image_size){
|
||||
CvSize window_size;
|
||||
GtkWidget * toplevel = gtk_widget_get_toplevel( window->frame );
|
||||
gdk_drawable_get_size( GDK_DRAWABLE(toplevel->window),
|
||||
&window_size.width, &window_size.height );
|
||||
// CvSize icvCalcOptimalWindowSize( CvWindow * window, CvSize new_image_size){
|
||||
// CvSize window_size;
|
||||
// GtkWidget * toplevel = gtk_widget_get_toplevel( window->frame );
|
||||
// gdk_drawable_get_size( GDK_DRAWABLE(toplevel->window),
|
||||
// &window_size.width, &window_size.height );
|
||||
|
||||
window_size.width = window_size.width + new_image_size.width - window->widget->allocation.width;
|
||||
window_size.height = window_size.height + new_image_size.height - window->widget->allocation.height;
|
||||
// window_size.width = window_size.width + new_image_size.width - window->widget->allocation.width;
|
||||
// window_size.height = window_size.height + new_image_size.height - window->widget->allocation.height;
|
||||
|
||||
return window_size;
|
||||
}
|
||||
// return window_size;
|
||||
// }
|
||||
|
||||
CV_IMPL void
|
||||
cvShowImage( const char* name, const CvArr* arr )
|
||||
|
||||
Reference in New Issue
Block a user