Exemplo n.º 1
0
void input_overlay_set_scale_factor(input_overlay_t *ol, float scale)
{
   for (size_t i = 0; i < ol->size; i++)
      input_overlay_scale(&ol->overlays[i], scale);

   ol->iface->vertex_geom(ol->iface_data,
         ol->active->mod_x, ol->active->mod_y, ol->active->mod_w, ol->active->mod_h);
}
Exemplo n.º 2
0
void input_overlay_set_scale_factor(input_overlay_t *ol, float scale)
{
   size_t i;
   for (i = 0; i < ol->size; i++)
      input_overlay_scale(&ol->overlays[i], scale);

   input_overlay_set_vertex_geom(ol);
}
Exemplo n.º 3
0
/**
 * input_overlay_set_scale_factor:
 * @ol                    : Overlay handle.
 * @scale                 : Factor of scale to apply.
 *
 * Scales the overlay by a factor of scale.
 **/
void input_overlay_set_scale_factor(float scale)
{
   size_t i;
   input_overlay_t *ol = overlay_ptr;

   if (!ol)
      return;

   for (i = 0; i < ol->size; i++)
      input_overlay_scale(&ol->overlays[i], scale);

   input_overlay_set_vertex_geom();
}
Exemplo n.º 4
0
/**
 * input_overlay_set_scale_factor:
 * @ol                    : Overlay handle.
 * @scale                 : Factor of scale to apply.
 *
 * Scales the overlay by a factor of scale.
 **/
void input_overlay_set_scale_factor(input_overlay_t *ol, float scale)
{
   size_t i;
    
   /* TODO/FIXME - Bad hackery. Should get rid of this */
   if (!ol)
      ol = overlay_ptr;
   if (!ol)
      return;

   for (i = 0; i < ol->size; i++)
      input_overlay_scale(&ol->overlays[i], scale);

   input_overlay_set_vertex_geom(ol);
}