Update of /cvsroot/ufraw/ufraw In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26597
Modified Files: ufraw_preview.c Log Message: Calculate size of histograms based on screen height. Index: ufraw_preview.c =================================================================== RCS file: /cvsroot/ufraw/ufraw/ufraw_preview.c,v retrieving revision 1.324 retrieving revision 1.325 diff -u -d -r1.324 -r1.325 --- ufraw_preview.c 20 Jan 2010 22:18:14 -0000 1.324 +++ ufraw_preview.c 23 Jan 2010 04:30:18 -0000 1.325 @@ -5495,22 +5495,9 @@ // that will cause the scrollbars to appear. preview_width = (uf->rotatedWidth+1) / scale; preview_height = (uf->rotatedHeight+1) / scale; - if (screen.height<=600) { - curveeditorHeight = 192; - data->HisMinHeight = 0; - } else if (screen.height<700) { - curveeditorHeight = 192; - data->HisMinHeight = 48; - } else if (screen.height<800) { - curveeditorHeight = 192; - data->HisMinHeight = 64; - } else if (screen.height<900) { - curveeditorHeight = 192; - data->HisMinHeight = 80; - } else { - curveeditorHeight = 256; - data->HisMinHeight = 96; - } + curveeditorHeight = screen.height<900 ? 192 : 256; + data->HisMinHeight = screen.height<900 ? 16*(screen.height-600)/50 : 96; + if (data->HisMinHeight<0) data->HisMinHeight = 0; previewHBox = GTK_BOX(gtk_hbox_new(FALSE, 0)); gtk_container_add(GTK_CONTAINER(previewWindow), GTK_WIDGET(previewHBox)); previewVBox = gtk_vbox_new(FALSE, 0); ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ ufraw-cvs mailing list ufraw-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ufraw-cvs