Skip to content

Commit 1c5b61a

Browse files
committed
removed partial fixes added earlier
1 parent bb05ad0 commit 1c5b61a

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

core/src/processing/core/PApplet.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,17 +2254,8 @@ protected PGraphics makeGraphics(int w, int h,
22542254
// if (!primary) {
22552255
// surface.initImage(pg, w, h);
22562256
// }
2257-
2258-
//setting w/h to 0 if it is is invalid
2259-
if(w <= 0){
2260-
w = 0;
2261-
}
2262-
if(h <= 0) {
2263-
h = 0;
2264-
}
22652257
pg.setSize(w, h);
22662258

2267-
22682259
// everything worked, return it
22692260
return pg;
22702261

@@ -2308,8 +2299,6 @@ protected PGraphics makeGraphics(int w, int h,
23082299
if (e.getMessage().contains("cannot be <= 0")) {
23092300
// IllegalArgumentException will be thrown if w/h is <= 0
23102301
// http://code.google.com/p/processing/issues/detail?id=983
2311-
2312-
// a fix should be done here to resize the window back to 0 if new size is not valid
23132302
throw new RuntimeException(e);
23142303

23152304
} else {

0 commit comments

Comments
 (0)