Home
last modified time | relevance | path

Searched refs:diameter2 (Results 1 – 1 of 1) sorted by relevance

/external/qemu/android/skin/
Dtrackball.c214 int diameter2 = diameter + ring*2; in trackball_init() local
222 ball->diameter = diameter2; in trackball_init()
229 ball->pixels = (unsigned*)calloc( diameter2*diameter2, sizeof(unsigned) ); in trackball_init()
230 ball->surface = sdl_surface_from_argb32( ball->pixels, diameter2, diameter2 ); in trackball_init()
305 int diameter2 = diameter + 2*ring; in trackball_init() local
307 double radius2 = diameter2*0.5; in trackball_init()
311 ball->sphere_map = calloc( diameter2*diameter2, sizeof(SphereCoordRec) ); in trackball_init()
313 for (yy = 0; yy < diameter2; yy++) { in trackball_init()
314 for (xx = 0; xx < diameter2; xx++) { in trackball_init()
327 coord->offset = xx + yy*diameter2; in trackball_init()
[all …]