Skip to content

Commit

Permalink
Merge pull request nicolasgramlich#150 from spencerelliott/GLES2
Browse files Browse the repository at this point in the history
Added detection for edit mode in RenderSurfaceView.
  • Loading branch information
Nicolas Gramlich committed Jul 17, 2012
2 parents 72db5f1 + e0a6db0 commit 9ae632b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/andengine/opengl/view/RenderSurfaceView.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ public ConfigChooser getConfigChooser() throws IllegalStateException {
*/
@Override
protected void onMeasure(final int pWidthMeasureSpec, final int pHeightMeasureSpec) {
if(this.isInEditMode()) {
super.onMeasure(pWidthMeasureSpec, pHeightMeasureSpec);
return;
}
this.mEngineRenderer.mEngine.getEngineOptions().getResolutionPolicy().onMeasure(this, pWidthMeasureSpec, pHeightMeasureSpec);
}

Expand Down

0 comments on commit 9ae632b

Please sign in to comment.