diff callbacks.c @ 10:5e282003f0c1

minor changes; besser indenting
author meillo@marmaro.de
date Thu, 04 Mar 2010 13:54:17 +0100
parents 7e1cf00de1df
children c18ba4ea1514
line wrap: on
line diff
--- a/callbacks.c	Thu Mar 20 20:01:38 2008 +0100
+++ b/callbacks.c	Thu Mar 04 13:54:17 2010 +0100
@@ -7,7 +7,7 @@
 
 int image_width;
 int image_height;
-float inc = 0.1;
+float inc = 0.3;
 /*
 void update_spin_button_ratio(GtkWidget* spinbutton) {
 	g_print("ratio change: %f\n", ratio);
@@ -169,7 +169,7 @@
 	static GdkPixbuf* pixbuf_new;
 	g_object_unref(pixbuf_new);
 
-	pixbuf_new = gdk_pixbuf_scale_simple(image_buffer, image_width, image_height, GDK_INTERP_HYPER);
+	pixbuf_new = gdk_pixbuf_scale_simple(image_buffer, image_width, image_height, GDK_INTERP_BILINEAR);
 	gtk_image_set_from_pixbuf((GtkImage*) lookup_widget(cropper_window, "image_area"), pixbuf_new);
 }
 
@@ -227,6 +227,21 @@
 void on_cropper_window_create(GtkObject* object, gpointer user_data) {
 	image_width = gdk_pixbuf_get_width(image_buffer);
 	image_height = gdk_pixbuf_get_height(image_buffer);
+
+	/*
+  image_buffer = gdk_pixbuf_new_from_file(image_filename, NULL);
+  image_area = gtk_image_new_from_pixbuf(image_buffer);
+
+	int w, h;
+	GtkWidget* image_a;
+
+	image_a = (GtkWidget*) lookup_widget(cropper_window, "image_area");
+	gdk_drawable_get_size (image_a->window, &w, &h);
+
+	image_width = w - 200;
+	image_height = h - 150;
+	set_zoom();
+	*/
 }
 
 void on_cropper_window_destroy(GtkObject* object, gpointer user_data) {