rem: if (xine_get_current_frame(gtx->priv->xine, &width, &height, &ratio_code, &format, &y, &u, &v) == 0) return;  D ("Orig width: %d height: %d", width, height);  new_w = width * ratio; new_h = height * ratio;  D ("New width: %d height: %d", new_w, new_h);
add: new_w = gtx->priv->video_width * ratio; new_h = gtx->priv->video_height * ratio;
context: gtk_xine_set_scale_ratio (GtkXine *gtx, gfloat ratio){	GtkWindow *toplevel;	uint8_t *y, *u, *v;	int width, height, ratio_code, format;	int new_w, new_h;	y = u = v = NULL;	if (gtx->priv->fullscreen_mode == TRUE)		return;	if (xine_get_current_frame(gtx->priv->xine,				&width, &height, &ratio_code, &format,				&y, &u, &v) == 0)		return;	D ("Orig width: %d height: %d", width, height);	new_w = width * ratio;	new_h = height * ratio;	D ("New width: %d height: %d", new_w, new_h);	/* y, u and v don't need to be freed apparently *//*FIXME	g_free (y);	g_free (u);	g_free (v);*/	/* don't scale to something bigger than the screen, and leave us	 * some room */	if (new_w > (gdk_screen_width () - 128) ||			new_h > (gdk_screen_height () - 128))		return;	toplevel = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gtx)));	gtk_window_set_resizable (toplevel, FALSE);	gtx->widget.allocation.width = new_w;	gtx->widget.allocation.height = new_h;	gtk_widget_set_size_request (gtk_widget_get_parent (GTK_WIDGET (gtx)),			new_w, new_h);	gtk_widget_queue_resize (gtk_widget_get_parent (GTK_WIDGET (gtx)));	while (gtk_events_pending ())		gtk_main_iteration ();	gtk_window_set_resizable (toplevel, TRUE);}