forked from AuroraMiddleware/gtk
image: Indentation fix
This commit is contained in:
parent
1d3aa9207c
commit
ea8f1469c1
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user