Project

General

Profile

« Previous | Next » 

Revision 6fd3af4d

Added by Leszek Koltunski about 8 years ago

onPause(): fix the Save app. All apps should behave correctly now.

View differences:

src/main/java/org/distorted/examples/save/SaveRenderer.java
225 225

  
226 226
    InputStream is = mView.getContext().getResources().openRawResource(R.raw.girl);
227 227
    Bitmap bitmap;
228
        
228

  
229 229
    try
230 230
      {
231 231
      bitmap = BitmapFactory.decodeStream(is);
......
246 246
    mGirl = new DistortedTexture(bmpWidth,bmpHeight);
247 247
    mGirl.setTexture(bitmap);
248 248

  
249
    mOffscreen = new DistortedFramebuffer(bmpWidth,bmpHeight);
249
    mOffscreen = new DistortedFramebuffer( (int)(mScale*bmpWidth) , (int)(mScale*bmpHeight) );
250 250

  
251 251
    try
252 252
      {

Also available in: Unified diff