Skip to content

Commit a06c203

Browse files
committed
cleaning up
1 parent 264d25d commit a06c203

File tree

3 files changed

+0
-27
lines changed

3 files changed

+0
-27
lines changed

core/src/processing/a2d/PGraphicsAndroid2D.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,7 @@ public void surfaceChanged() {
170170

171171
@Override
172172
public void setSize(int iwidth, int iheight) {
173-
// OR with prev value in case setSize() gets called twice before the renderer has the chance to resize
174173
sized = iwidth != width || iheight != height;
175-
System.out.println("======================> RESIZING AT FRAME " + parent.frameCount + " FROM " + width + "x" + height + " to " + iwidth + "x" + iheight);
176174
super.setSize(iwidth, iheight);
177175
}
178176

@@ -214,7 +212,6 @@ protected Canvas checkCanvas() {
214212

215213
@Override
216214
public void beginDraw() {
217-
218215
canvas = checkCanvas();
219216

220217
checkSettings();
@@ -2074,8 +2071,6 @@ protected void saveState() {
20742071
restoreWidth = pixelWidth;
20752072
restoreHeight = pixelHeight;
20762073

2077-
System.out.println("============================> SAVING SCREEN FROM " + restoreWidth + " " + pixelHeight);
2078-
20792074
int size = bitmap.getHeight() * bitmap.getRowBytes();
20802075
ByteBuffer restoreBitmap = ByteBuffer.allocate(size);
20812076
bitmap.copyPixelsToBuffer(restoreBitmap);
@@ -2115,8 +2110,6 @@ protected void restoreSurface() {
21152110
} else if (restoreCount > 0) {
21162111
restoreCount--;
21172112
if (restoreCount == 0) {
2118-
System.out.println("============================> RESTORING SCREEN TO " + restoreWidth + " " + pixelHeight);
2119-
21202113
Context context = parent.getContext();
21212114
if (context == null) return;
21222115
try {

core/src/processing/a2d/PSurfaceAndroid2D.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,6 @@ public void surfaceChanged(SurfaceHolder holder, int format, int iwidth, int ihe
123123
System.out.println("SketchSurfaceView.surfaceChanged() " + iwidth + " " + iheight);
124124
}
125125

126-
// sketch.surfaceChanged();
127-
// graphics.surfaceChanged();
128-
//
129-
// sketch.setSize(iwidth, iheight);
130-
// graphics.setSize(sketch.sketchWidth(), sketch.sketchHeight());
131126
sketch.surfaceChanged();
132127
sketch.setSize(iwidth, iheight);
133128
}

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,7 @@ public void reset() {
670670

671671
@Override
672672
public void setSize(int iwidth, int iheight) {
673-
// OR with prev value in case setSize() gets called twice before the renderer has the chance to resize
674673
sized = iwidth != width || iheight != height;
675-
System.out.println("======================> RESIZING AT FRAME " + parent.frameCount + " FROM " + width + "x" + height + " to " + iwidth + "x" + iheight);
676674
super.setSize(iwidth, iheight);
677675

678676
updatePixelSize();
@@ -5710,18 +5708,8 @@ public void run() {
57105708
Context context = parent.getContext();
57115709
if (context == null || parent.getSurface().getComponent().isService()) return;
57125710
try {
5713-
// if (restoreWidth != pixelWidth && restoreHeight != pixelHeight) {
5714-
// // The screen size changed between calling saveState() and the pixel read operation,
5715-
// // so it does no longer makes sense to try saving the screen's contents.
5716-
// restoreWidth = -1;
5717-
// restoreHeight = -1;
5718-
// return;
5719-
// }
5720-
57215711
restoreWidth = pixelWidth;
57225712
restoreHeight = pixelHeight;
5723-
System.out.println("============================> SAVING SCREEN FROM " + restoreWidth + " " + pixelHeight);
5724-
57255713

57265714
int[] restorePixels = new int[restoreWidth * restoreHeight];
57275715
IntBuffer buf = IntBuffer.wrap(restorePixels);
@@ -5773,8 +5761,6 @@ protected void restoreSurface() {
57735761
} else if (restoreCount > 0) {
57745762
restoreCount--;
57755763
if (restoreCount == 0) {
5776-
System.out.println("============================> RESTORING SCREEN TO " + restoreWidth + " " + pixelHeight);
5777-
57785764
Context context = parent.getContext();
57795765
if (context == null) return;
57805766
try {
@@ -6838,7 +6824,6 @@ public void resize(int wide, int high) {
68386824

68396825
protected void initPrimary() {
68406826
if (initialized) return;
6841-
System.out.println("===================> INTITALIZING PRIMARY SURFACE AT " + width + "x" + height);
68426827
pgl.initSurface(smooth);
68436828
if (texture != null) {
68446829
removeCache(this);

0 commit comments

Comments
 (0)