commit 6eb5eec24c2c34e834832d05267e553f8a70287b
Author: Leszek Koltunski <leszek@distoretedandroid.org>
Date:   Thu Feb 16 16:30:30 2017 +0000

    A Lot of fixes for the issues uncovered by Olimpic.
    
    Still at least 1 known issue: sometimes, when we re-add a Surface, some garbage pops up on the screen for a brief split second. Visible in Olimpic.

diff --git a/src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java b/src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java
index 0487362..102a228 100644
--- a/src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java
+++ b/src/main/java/org/distorted/examples/olimpic/OlimpicRenderer.java
@@ -48,8 +48,8 @@ import android.opengl.GLSurfaceView;
 class OlimpicRenderer implements GLSurfaceView.Renderer 
 {
    private static final int LEAF_SIZE = 100;
-   private static final int NUM_CIRCLES = 2;
-   private static final int NUM_LEAVES  = 2;
+   private static final int NUM_CIRCLES = 5;
+   private static final int NUM_LEAVES  = 8;
    
    private GLSurfaceView mView;
    private DistortedNode mRoot;
@@ -66,8 +66,6 @@ class OlimpicRenderer implements GLSurfaceView.Renderer
 
    void pressed(int color, int number, boolean checked)
      {
-     android.util.Log.d("Olimpic","Color: "+color+" number:"+number+" checked: "+checked);
-
      if( color>=0 && color<NUM_CIRCLES )
        {
        if( number==0 )
diff --git a/src/main/res/layout/fbolayout.xml b/src/main/res/layout/fbolayout.xml
index d22a68c..0c5e57d 100644
--- a/src/main/res/layout/fbolayout.xml
+++ b/src/main/res/layout/fbolayout.xml
@@ -27,6 +27,7 @@
                 android:id="@+id/deformDistortButton"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
+                android:checked="true"
                 android:onClick="DepthYes"
                 android:text="@string/DepthYes" />
 
@@ -34,7 +35,6 @@
                 android:id="@+id/deformDeformButton"
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
-                android:checked="true"
                 android:onClick="DepthNo"
                 android:text="@string/DepthNo" />
 
diff --git a/src/main/res/layout/olimpiclayout.xml b/src/main/res/layout/olimpiclayout.xml
index 279f69a..ac7c1d0 100644
--- a/src/main/res/layout/olimpiclayout.xml
+++ b/src/main/res/layout/olimpiclayout.xml
@@ -29,6 +29,7 @@
             android:orientation="horizontal"
             android:layout_width="match_parent"
             android:layout_height="0dp"
+            android:background="@color/blue"
             android:layout_weight="0.5">
 
             <CheckBox
@@ -100,6 +101,7 @@
             android:orientation="horizontal"
             android:layout_width="match_parent"
             android:layout_height="0dp"
+            android:background="@color/black"
             android:layout_weight="0.5">
 
             <CheckBox
@@ -171,6 +173,7 @@
             android:orientation="horizontal"
             android:layout_width="match_parent"
             android:layout_height="0dp"
+            android:background="@color/red"
             android:layout_weight="0.5">
 
             <CheckBox
@@ -242,6 +245,7 @@
             android:orientation="horizontal"
             android:layout_width="match_parent"
             android:layout_height="0dp"
+            android:background="@color/yellow"
             android:layout_weight="0.5">
 
             <CheckBox
@@ -313,6 +317,7 @@
             android:orientation="horizontal"
             android:layout_width="match_parent"
             android:layout_height="0dp"
+            android:background="@color/green"
             android:layout_weight="0.5">
 
             <CheckBox
diff --git a/src/main/res/values/colors.xml b/src/main/res/values/colors.xml
new file mode 100644
index 0000000..b9fb7aa
--- /dev/null
+++ b/src/main/res/values/colors.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+<color name="blue">#ff0000ff</color>
+<color name="black">#ff000000</color>
+<color name="red">#ffff0000</color>
+<color name="yellow">#ffffff00</color>
+<color name="green">#ff00ff00</color>
+</resources>
\ No newline at end of file
