Queues a size change, won't happen until beginDraw().
(int w, int h)
| 115 | * Queues a size change, won't happen until beginDraw(). |
| 116 | */ |
| 117 | @Override |
| 118 | public void setSize(int w, int h) { // ignore |
| 119 | // If this is the initial setup, need to assign width/height; |
| 120 | // especially necessary for renderer subclasses. |
| 121 | // https://github.com/processing/processing4/issues/395 |
| 122 | if (width == 0 || height == 0) { |
| 123 | super.setSize(w, h); |
| 124 | } |
| 125 | sizeChange = new Dimension(w, h); |
| 126 | } |
| 127 | |
| 128 | |
| 129 | // @Override |