commit 1bbe1af208dcf14a714b312e8a6a8f687f3eba54
Author: leszek <leszek@koltunski.pl>
Date:   Thu May 11 21:40:56 2017 +0100

    Some corrections so that most apps still work on the Android emulator (OpenGL ES 2.0-based)

diff --git a/src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java b/src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java
index 1854896..2e5a368 100644
--- a/src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java
+++ b/src/main/java/org/distorted/examples/effects3d/Effects3DRenderer.java
@@ -234,7 +234,7 @@ class Effects3DRenderer implements GLSurfaceView.Renderer
       float factorBackY = ((float)height)/backgroundSize;
 
       // quite tricky: move the background exactly to the FAR plane! (see DistortedOutputSurface.setProjection() )
-      mBackgroundEffects.move(new Static3D( -width/2, -height/2, -height*(1.0f-NEAR)/(2.0f*(float)Math.tan(FOV*Math.PI/360))) );
+      mBackgroundEffects.move(new Static3D( -width/2, -height/2, -0.9f*height*(1.0f-NEAR)/(2.0f*(float)Math.tan(FOV*Math.PI/360))) );
       mBackgroundEffects.scale(new Static3D(2*factorBackX, 2*factorBackY, 1.0f) );
 
       mScreen.resize(width, height);
diff --git a/src/main/res/layout/effects3dlayout.xml b/src/main/res/layout/effects3dlayout.xml
index 98a3bd6..a2d6c4b 100644
--- a/src/main/res/layout/effects3dlayout.xml
+++ b/src/main/res/layout/effects3dlayout.xml
@@ -69,7 +69,7 @@
 
         <Spinner
             android:id="@+id/effects3dspinner"
-            android:layout_width="wrap_content"
+            android:layout_width="0dp"
             android:layout_height="wrap_content"
             android:layout_weight="0.5"/>
 
@@ -93,7 +93,7 @@
         android:id="@+id/effects3dscrollView"
         android:layout_width="match_parent"
         android:layout_height="0dp"
-        android:layout_weight="0.82"
+        android:layout_weight="0.80"
         >
 
         <LinearLayout
