X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fsplitflap.c;h=922417545697afe9ac44d11c485523f20aa8fde3;hp=8a0df74cc97921694add922e0265ea216a1e67d9;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/glx/splitflap.c b/hacks/glx/splitflap.c index 8a0df74c..92241754 100644 --- a/hacks/glx/splitflap.c +++ b/hacks/glx/splitflap.c @@ -213,6 +213,14 @@ reshape_splitflap (ModeInfo *mi, int width, int height) 0, 0, 0, 0, 1, 0); +# 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 (h, h, h); + } +# endif + glClear(GL_COLOR_BUFFER_BIT); } @@ -1362,7 +1370,7 @@ draw_splitflap (ModeInfo *mi) ? grid_width * r : grid_height); GLfloat s = 8; -# ifdef USE_IPHONE +# ifdef HAVE_MOBILE s *= 2; /* #### What. Why is this necessary? */ #endif s /= cells;