Project

General

Profile

« Previous | Next » 

Revision 1fc23462

Added by Leszek Koltunski about 4 years ago

Port Dynamic to the new setStretch-less API.

View differences:

src/main/java/org/distorted/examples/dynamic/DynamicSurfaceView.java
179 179

  
180 180
///////////////////////////////////////////////////////////////////////////////////////////////////
181 181

  
182
    public static void setHalfWidth(int hw)
182
    public static void surfaceChanged(int w, int h)
183 183
      {
184
      halfScreenWidth = hw;
185
      }
186

  
187
///////////////////////////////////////////////////////////////////////////////////////////////////
188

  
189
    public static void setHalfHeight(int hh)
190
      {
191
      halfScreenHeight = hh;
184
      halfScreenWidth = w/2;
185
      halfScreenHeight= h/2;
192 186
      }
193 187

  
194 188
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff