Browse Source

Fix for android zero-height bitmap problem.

tags/2021-05-28
jules 13 years ago
parent
commit
3374dff2aa
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      extras/JuceDemo/Builds/Android/src/com/juce/JuceDemo.java
  2. +1
    -1
      modules/juce_core/native/java/JuceAppActivity.java

+ 1
- 1
extras/JuceDemo/Builds/Android/src/com/juce/JuceDemo.java View File

@@ -410,7 +410,7 @@ public final class JuceDemo extends Activity
bounds.right++;
final int w = bounds.width();
final int h = bounds.height();
final int h = Math.max (1, bounds.height());
Bitmap bm = Bitmap.createBitmap (w, h, Bitmap.Config.ARGB_8888);


+ 1
- 1
modules/juce_core/native/java/JuceAppActivity.java View File

@@ -410,7 +410,7 @@ public final class JuceAppActivity extends Activity
bounds.right++;
final int w = bounds.width();
final int h = bounds.height();
final int h = Math.max (1, bounds.height());
Bitmap bm = Bitmap.createBitmap (w, h, Bitmap.Config.ARGB_8888);


Loading…
Cancel
Save