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;
|
double image_ratio = (double) width / height;
|
||||||
|
|
||||||
if (ratio > image_ratio)
|
if (ratio > image_ratio)
|
||||||
{
|
{
|
||||||
w = width;
|
w = width;
|
||||||
h = width / ratio;
|
h = width / ratio;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
w = height * ratio;
|
w = height * ratio;
|
||||||
h = height;
|
h = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
x = (width - ceil (w)) / 2;
|
x = (width - ceil (w)) / 2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user