~fyrmir/livewallpaper/0.4

« back to all changes in this revision

Viewing changes to src/output.c

  • Committer: Aurélien RIVIÈRE
  • Date: 2012-09-07 17:29:12 UTC
  • Revision ID: aurelien.riv@gmail.com-20120907172912-tbgesevtxme7w72g
xdg autostart file added

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        return self->priv->height;
154
154
}
155
155
 
156
 
double
 
156
gdouble
157
157
lw_output_get_aspect_ratio(LwOutput *self)
158
158
{
159
159
        if(self->priv->width == 0 || self->priv->height == 0)
160
160
                return 0;
161
161
 
162
 
        return ((double) self->priv->width) / ((double) self->priv->height);
 
162
        return ((gdouble) self->priv->width) / ((gdouble) self->priv->height);
163
163
}
164
164
 
165
165
guint