@@ -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