~aurelien-riv/+junk/livewallpaper

« back to all changes in this revision

Viewing changes to plugins/nexus/src/nexus.c

  • Committer: Aurélien RIVIÈRE
  • Date: 2012-11-06 23:23:17 UTC
  • Revision ID: aurelien.riv@gmail.com-20121106232317-ny5aed57qnl6chl4
Some C types replaced with Glib types

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        height = lw_output_get_height(output);
70
70
 
71
71
        if(width > height)
72
 
                glOrtho(0.0, 1.0, 0.0, ((double) height) / ((double) width), 0.0, 1.0);
 
72
                glOrtho(0.0, 1.0, 0.0, ((gdouble) height) / ((gdouble) width), 0.0, 1.0);
73
73
        else
74
 
                glOrtho(0.0, ((double) width) / ((double) height), 0.0, 1.0, 0.0, 1.0);
 
74
                glOrtho(0.0, ((gdouble) width) / ((gdouble) height), 0.0, 1.0, 0.0, 1.0);
75
75
 
76
76
        glMatrixMode(GL_MODELVIEW);
77
77
        glPushMatrix();
79
79
}
80
80
 
81
81
static void
82
 
nexus_plugin_prepare_paint(LwLivewallpaperPlugin *plugin, int ms_since_last_paint)
 
82
nexus_plugin_prepare_paint(LwLivewallpaperPlugin *plugin, gint ms_since_last_paint)
83
83
{
84
84
        NexusPlugin *self = NEXUS_PLUGIN(plugin);
85
85