- {&bscale_wh, "boxsize", "Boxsize", DEF_WH, t_Float},
+ {&bscale_wh, "boxsize", "Boxsize", DEF_BOXSIZE, t_Float},
{&do_dissolve, "dissolve", "Dissolve", DEF_DISSOLVE, t_Bool},
{&do_fade, "fade", "Fade", DEF_FADE, t_Bool},
{&do_blur, "blur", "Blur", DEF_BLUR, t_Bool},
{&do_dissolve, "dissolve", "Dissolve", DEF_DISSOLVE, t_Bool},
{&do_fade, "fade", "Fade", DEF_FADE, t_Bool},
{&do_blur, "blur", "Blur", DEF_BLUR, t_Bool},
+# ifdef HAVE_MOBILE /* Keep it the same relative size when rotated. */
+ {
+ int o = (int) current_device_rotation();
+ if (o != 0 && o != 180 && o != -180)
+ glScalef (1/h, 1/h, 1/h);
+ }
+# endif
reshape_ball(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
bp->ballList = glGenLists(1);
glNewList(bp->ballList, GL_COMPILE);
reshape_ball(mi, MI_WIDTH(mi), MI_HEIGHT(mi));
bp->ballList = glGenLists(1);
glNewList(bp->ballList, GL_COMPILE);
glXMakeCurrent(MI_DISPLAY(mi), MI_WINDOW(mi), *(bp->glx_context));
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glXMakeCurrent(MI_DISPLAY(mi), MI_WINDOW(mi), *(bp->glx_context));
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);