summaryrefslogtreecommitdiff
path: root/gtk/gtkimage.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-12-30 20:25:21 +0100
committerTimm Bäder <mail@baedert.org>2018-12-31 12:44:02 +0100
commitea8f1469c1f109e80ef6dab12772d6339166a4d7 (patch)
tree9231c1390ab9af3dc80866618124df8c4399d4ad /gtk/gtkimage.c
parent1d3aa9207c44c4820de8b758b6dee3b3c68be966 (diff)
downloadgtk+-ea8f1469c1f109e80ef6dab12772d6339166a4d7.tar.gz
image: Indentation fix
Diffstat (limited to 'gtk/gtkimage.c')
-rw-r--r--gtk/gtkimage.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 8acceb12e9..1546256341 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1100,16 +1100,16 @@ gtk_image_snapshot (GtkWidget *widget,
{
double image_ratio = (double) width / height;
- if (ratio > image_ratio)
- {
- w = width;
- h = width / ratio;
- }
- else
- {
- w = height * ratio;
- h = height;
- }
+ if (ratio > image_ratio)
+ {
+ w = width;
+ h = width / ratio;
+ }
+ else
+ {
+ w = height * ratio;
+ h = height;
+ }
x = (width - ceil (w)) / 2;