Project

General

Profile

« Previous | Next » 

Revision dd00d051

Added by Leszek Koltunski over 2 years ago

Relax objectlib's requirements: it can be displayed not only on top of a DistortedScreen, but any DistortedFramebuffer.

View differences:

src/main/java/org/distorted/objectlib/effects/win/WinEffectGlow.java
69 69

  
70 70
    float moveX = mPre.getMoveX();
71 71
    float moveY = mPre.getMoveY();
72
    int width   = mScreen.getWidth();
73
    int height  = mScreen.getHeight();
72
    int width   = mFrame.getWidth();
73
    int height  = mFrame.getHeight();
74 74
    Static3D center = new Static3D(moveX/width, moveY/height, 0);
75 75
    float ratio = 0.5f*mObject.getRatio();
76 76

  

Also available in: Unified diff